mirror of https://github.com/sbt/sbt.git
Merge pull request #6710 from xuwei-k/update-scalatest
Update scalatest
This commit is contained in:
commit
ad6f07bfee
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
package sbt.internal.util
|
package sbt.internal.util
|
||||||
|
|
||||||
import org.scalatest._
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
import org.scalatest.matchers.should.Matchers
|
||||||
|
|
||||||
abstract class UnitSpec extends FlatSpec with Matchers
|
abstract class UnitSpec extends AnyFlatSpec with Matchers
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
package sbt.internal.util
|
package sbt.internal.util
|
||||||
|
|
||||||
import org.scalatest._
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
import org.scalatest.matchers.should.Matchers
|
||||||
|
|
||||||
abstract class UnitSpec extends FlatSpec with Matchers
|
abstract class UnitSpec extends AnyFlatSpec with Matchers
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
|
|
||||||
package sbt.internal.util.complete
|
package sbt.internal.util.complete
|
||||||
|
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
|
||||||
class SizeParserSpec extends FlatSpec {
|
class SizeParserSpec extends AnyFlatSpec {
|
||||||
"SizeParser" should "handle raw bytes" in {
|
"SizeParser" should "handle raw bytes" in {
|
||||||
assert(Parser.parse(str = "123456", SizeParser.value) == Right(123456L))
|
assert(Parser.parse(str = "123456", SizeParser.value) == Right(123456L))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,10 @@ package sbt.util
|
||||||
|
|
||||||
import sbt.internal.util._
|
import sbt.internal.util._
|
||||||
|
|
||||||
import org.scalatest._
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
import org.scalatest.matchers.should.Matchers
|
||||||
|
|
||||||
class LogExchangeSpec extends FlatSpec with Matchers {
|
class LogExchangeSpec extends AnyFlatSpec with Matchers {
|
||||||
import LogExchange._
|
import LogExchange._
|
||||||
|
|
||||||
checkTypeTag("stringTypeTagThrowable", stringTypeTagThrowable, StringTypeTag.fast[Throwable])
|
checkTypeTag("stringTypeTagThrowable", stringTypeTagThrowable, StringTypeTag.fast[Throwable])
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,14 @@
|
||||||
|
|
||||||
package sbt.internal.util
|
package sbt.internal.util
|
||||||
|
|
||||||
import org.scalatest._
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
import org.scalatest.matchers.should.Matchers
|
||||||
import sbt.util._
|
import sbt.util._
|
||||||
import java.io.{ File, PrintWriter }
|
import java.io.{ File, PrintWriter }
|
||||||
import sbt.io.Using
|
import sbt.io.Using
|
||||||
import scala.annotation.nowarn
|
import scala.annotation.nowarn
|
||||||
|
|
||||||
class ManagedLoggerSpec extends FlatSpec with Matchers {
|
class ManagedLoggerSpec extends AnyFlatSpec with Matchers {
|
||||||
val context = LoggerContext(useLog4J = true)
|
val context = LoggerContext(useLog4J = true)
|
||||||
@nowarn
|
@nowarn
|
||||||
val asyncStdout = new ConsoleAppenderFromLog4J("asyncStdout", LogExchange.asyncStdout)
|
val asyncStdout = new ConsoleAppenderFromLog4J("asyncStdout", LogExchange.asyncStdout)
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
|
|
||||||
package sbt.internal.util
|
package sbt.internal.util
|
||||||
|
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
|
||||||
class CleanStringSpec extends FlatSpec {
|
class CleanStringSpec extends AnyFlatSpec {
|
||||||
"EscHelpers" should "not modify normal strings" in {
|
"EscHelpers" should "not modify normal strings" in {
|
||||||
val cleanString = s"1234"
|
val cleanString = s"1234"
|
||||||
assert(EscHelpers.stripColorsAndMoves(cleanString) == cleanString)
|
assert(EscHelpers.stripColorsAndMoves(cleanString) == cleanString)
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,13 @@ package sbt.internal.util
|
||||||
|
|
||||||
import java.io.{ File, PrintStream }
|
import java.io.{ File, PrintStream }
|
||||||
|
|
||||||
import org.scalatest.{ BeforeAndAfterAll, FlatSpec }
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
import org.scalatest.BeforeAndAfterAll
|
||||||
import sbt.internal.util.Terminal.SimpleTerminal
|
import sbt.internal.util.Terminal.SimpleTerminal
|
||||||
|
|
||||||
import scala.io.Source
|
import scala.io.Source
|
||||||
|
|
||||||
class ProgressStateSpec extends FlatSpec with BeforeAndAfterAll {
|
class ProgressStateSpec extends AnyFlatSpec with BeforeAndAfterAll {
|
||||||
|
|
||||||
private lazy val fileIn = new File("/tmp/tmp.txt")
|
private lazy val fileIn = new File("/tmp/tmp.txt")
|
||||||
private lazy val fileOut = Source.fromFile("/tmp/tmp.txt")
|
private lazy val fileOut = Source.fromFile("/tmp/tmp.txt")
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ package sbt.internal.util
|
||||||
|
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
import java.nio.charset.Charset
|
import java.nio.charset.Charset
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
import java.util.concurrent.LinkedBlockingQueue
|
import java.util.concurrent.LinkedBlockingQueue
|
||||||
|
|
||||||
class UTF8DecoderSpec extends FlatSpec {
|
class UTF8DecoderSpec extends AnyFlatSpec {
|
||||||
val decoder = Charset.forName("UTF-8").newDecoder
|
val decoder = Charset.forName("UTF-8").newDecoder
|
||||||
"ascii characters" should "not be modified" in {
|
"ascii characters" should "not be modified" in {
|
||||||
val inputStream = new InputStream {
|
val inputStream = new InputStream {
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
|
|
||||||
package sbt.internal.util
|
package sbt.internal.util
|
||||||
|
|
||||||
import org.scalatest._
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
|
||||||
class SourcePositionSpec extends FlatSpec {
|
class SourcePositionSpec extends AnyFlatSpec {
|
||||||
"SourcePosition()" should "return a sane SourcePosition" in {
|
"SourcePosition()" should "return a sane SourcePosition" in {
|
||||||
val filename = "SourcePositionSpec.scala"
|
val filename = "SourcePositionSpec.scala"
|
||||||
val lineNumber = 16
|
val lineNumber = 16
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
import sbt.internal.util.complete.Parser
|
import sbt.internal.util.complete.Parser
|
||||||
|
|
||||||
object MultiParserSpec {
|
object MultiParserSpec {
|
||||||
|
|
@ -22,7 +22,7 @@ object MultiParserSpec {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
import sbt.MultiParserSpec._
|
import sbt.MultiParserSpec._
|
||||||
class MultiParserSpec extends FlatSpec {
|
class MultiParserSpec extends AnyFlatSpec {
|
||||||
"parsing" should "parse single commands" in {
|
"parsing" should "parse single commands" in {
|
||||||
assert(";foo".parse == Seq("foo"))
|
assert(";foo".parse == Seq("foo"))
|
||||||
assert("; foo".parse == Seq("foo"))
|
assert("; foo".parse == Seq("foo"))
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,8 @@ package sbt.internal
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
|
|
||||||
import org.scalatest.{ FlatSpec, Matchers }
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
import org.scalatest.matchers.should.Matchers
|
||||||
import sbt.internal.classpath.ClassLoaderCache
|
import sbt.internal.classpath.ClassLoaderCache
|
||||||
import sbt.io.IO
|
import sbt.io.IO
|
||||||
|
|
||||||
|
|
@ -19,7 +20,7 @@ object ClassLoaderCacheTest {
|
||||||
def get(classpath: Seq[File]): ClassLoader = c(classpath.toList)
|
def get(classpath: Seq[File]): ClassLoader = c(classpath.toList)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class ClassLoaderCacheTest extends FlatSpec with Matchers {
|
class ClassLoaderCacheTest extends AnyFlatSpec with Matchers {
|
||||||
import ClassLoaderCacheTest._
|
import ClassLoaderCacheTest._
|
||||||
private def withCache[R](f: ClassLoaderCache => R): R = {
|
private def withCache[R](f: ClassLoaderCache => R): R = {
|
||||||
val cache = new ClassLoaderCache(ClassLoader.getSystemClassLoader)
|
val cache = new ClassLoaderCache(ClassLoader.getSystemClassLoader)
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,12 @@
|
||||||
|
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
import sbt.internal.util.{ AttributeKey, AttributeMap }
|
import sbt.internal.util.{ AttributeKey, AttributeMap }
|
||||||
import sbt.io.syntax.file
|
import sbt.io.syntax.file
|
||||||
import scala.annotation.nowarn
|
import scala.annotation.nowarn
|
||||||
|
|
||||||
class ScopeDisplaySpec extends FlatSpec {
|
class ScopeDisplaySpec extends AnyFlatSpec {
|
||||||
val project = ProjectRef(file("foo/bar"), "bar")
|
val project = ProjectRef(file("foo/bar"), "bar")
|
||||||
val mangledName = "bar_slash_blah_blah_blah"
|
val mangledName = "bar_slash_blah_blah_blah"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,12 @@
|
||||||
|
|
||||||
package sbt.std
|
package sbt.std
|
||||||
|
|
||||||
import org.scalatest.{ TestData, fixture }
|
import org.scalatest.{ TestData, fixture, funsuite }
|
||||||
import sbt.std.TestUtil._
|
import sbt.std.TestUtil._
|
||||||
|
|
||||||
import scala.tools.reflect.{ FrontEnd, ToolBoxError }
|
import scala.tools.reflect.{ FrontEnd, ToolBoxError }
|
||||||
|
|
||||||
class TaskConfigSpec extends fixture.FunSuite with fixture.TestDataFixture {
|
class TaskConfigSpec extends funsuite.FixtureAnyFunSuite with fixture.TestDataFixture {
|
||||||
private def expectError(
|
private def expectError(
|
||||||
errorSnippet: String,
|
errorSnippet: String,
|
||||||
compileOptions: String = "",
|
compileOptions: String = "",
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
package sbt.std.neg
|
package sbt.std.neg
|
||||||
|
|
||||||
import scala.tools.reflect.ToolBoxError
|
import scala.tools.reflect.ToolBoxError
|
||||||
import org.scalatest.{ TestData, fixture }
|
import org.scalatest.{ TestData, fixture, funsuite }
|
||||||
import sbt.std.{ TaskLinterDSLFeedback, TestUtil }
|
import sbt.std.{ TaskLinterDSLFeedback, TestUtil }
|
||||||
import sbt.std.TestUtil._
|
import sbt.std.TestUtil._
|
||||||
|
|
||||||
class TaskNegSpec extends fixture.FunSuite with fixture.TestDataFixture {
|
class TaskNegSpec extends funsuite.FixtureAnyFunSuite with fixture.TestDataFixture {
|
||||||
def expectError(
|
def expectError(
|
||||||
errorSnippet: String,
|
errorSnippet: String,
|
||||||
compileOptions: String = "",
|
compileOptions: String = "",
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,12 @@
|
||||||
package sbt
|
package sbt
|
||||||
package internal
|
package internal
|
||||||
|
|
||||||
import org.scalatest._
|
import org.scalatest.diagrams.Diagrams
|
||||||
|
import org.scalatest.funsuite.AnyFunSuite
|
||||||
import sbt.internal.CrossJava.JavaDiscoverConfig._
|
import sbt.internal.CrossJava.JavaDiscoverConfig._
|
||||||
import scala.collection.immutable.ListMap
|
import scala.collection.immutable.ListMap
|
||||||
|
|
||||||
class CrossJavaTest extends FunSuite with DiagrammedAssertions {
|
class CrossJavaTest extends AnyFunSuite with Diagrams {
|
||||||
test("The Java home selector should select the most recent") {
|
test("The Java home selector should select the most recent") {
|
||||||
assert(
|
assert(
|
||||||
List("jdk1.8.0.jdk", "jdk1.8.0_121.jdk", "jdk1.8.0_45.jdk")
|
List("jdk1.8.0.jdk", "jdk1.8.0_121.jdk", "jdk1.8.0_45.jdk")
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,13 @@ package sbt.internal
|
||||||
|
|
||||||
import java.nio.file.{ Path, Paths }
|
import java.nio.file.{ Path, Paths }
|
||||||
|
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
import sbt.nio.FileStamp
|
import sbt.nio.FileStamp
|
||||||
import sbt.nio.FileStamp.Formats
|
import sbt.nio.FileStamp.Formats
|
||||||
import sjsonnew.JsonFormat
|
import sjsonnew.JsonFormat
|
||||||
import sjsonnew.support.scalajson.unsafe.Converter
|
import sjsonnew.support.scalajson.unsafe.Converter
|
||||||
|
|
||||||
class FileStampJsonSpec extends FlatSpec {
|
class FileStampJsonSpec extends AnyFlatSpec {
|
||||||
"file hashes" should "be serializable" in {
|
"file hashes" should "be serializable" in {
|
||||||
val hashes = Seq(
|
val hashes = Seq(
|
||||||
Paths.get("foo") -> FileStamp.hash("bar"),
|
Paths.get("foo") -> FileStamp.hash("bar"),
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ package sbt.internal
|
||||||
|
|
||||||
import java.util.concurrent.atomic.AtomicReference
|
import java.util.concurrent.atomic.AtomicReference
|
||||||
|
|
||||||
import org.scalatest.FunSuite
|
import org.scalatest.funsuite.AnyFunSuite
|
||||||
|
|
||||||
import scala.collection.mutable.ListBuffer
|
import scala.collection.mutable.ListBuffer
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
|
|
||||||
class GCMonitorTest extends FunSuite {
|
class GCMonitorTest extends AnyFunSuite {
|
||||||
class TestMonitor extends GCMonitorBase {
|
class TestMonitor extends GCMonitorBase {
|
||||||
val loggedTotals = ListBuffer.empty[Long]
|
val loggedTotals = ListBuffer.empty[Long]
|
||||||
override protected val window = 10.seconds
|
override protected val window = 10.seconds
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ import java.lang.ProcessBuilder
|
||||||
import java.lang.ProcessBuilder.Redirect
|
import java.lang.ProcessBuilder.Redirect
|
||||||
import java.nio.file.{ Files, Path }
|
import java.nio.file.{ Files, Path }
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
import sbt.io.IO
|
import sbt.io.IO
|
||||||
|
|
||||||
class InstallSbtnSpec extends FlatSpec {
|
class InstallSbtnSpec extends AnyFlatSpec {
|
||||||
private def withTemp[R](ext: String)(f: Path => R): R = {
|
private def withTemp[R](ext: String)(f: Path => R): R = {
|
||||||
val tmp = Files.createTempFile("sbt-1.4.1-", ext)
|
val tmp = Files.createTempFile("sbt-1.4.1-", ext)
|
||||||
try f(tmp)
|
try f(tmp)
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,12 @@
|
||||||
|
|
||||||
package sbt.internal.graph.rendering
|
package sbt.internal.graph.rendering
|
||||||
|
|
||||||
import org.scalatest.{ FlatSpec, Matchers }
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
import org.scalatest.matchers.should.Matchers
|
||||||
import sbt.internal.graph.rendering.TreeView.createJson
|
import sbt.internal.graph.rendering.TreeView.createJson
|
||||||
import sbt.internal.graph.{ GraphModuleId, Module, ModuleGraph, ModuleModel }
|
import sbt.internal.graph.{ GraphModuleId, Module, ModuleGraph, ModuleModel }
|
||||||
|
|
||||||
class TreeViewTest extends FlatSpec with Matchers {
|
class TreeViewTest extends AnyFlatSpec with Matchers {
|
||||||
val modA = GraphModuleId("orgA", "nameA", "1.0")
|
val modA = GraphModuleId("orgA", "nameA", "1.0")
|
||||||
val modB = GraphModuleId("orgB", "nameB", "2.0")
|
val modB = GraphModuleId("orgB", "nameB", "2.0")
|
||||||
val modC = GraphModuleId("orgC", "nameC", "3.0")
|
val modC = GraphModuleId("orgC", "nameC", "3.0")
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ object Dependencies {
|
||||||
val jline3Reader = "org.jline" % "jline-reader" % jline3Version
|
val jline3Reader = "org.jline" % "jline-reader" % jline3Version
|
||||||
val jline3Builtins = "org.jline" % "jline-builtins" % jline3Version
|
val jline3Builtins = "org.jline" % "jline-builtins" % jline3Version
|
||||||
val jansi = "org.fusesource.jansi" % "jansi" % "2.1.0"
|
val jansi = "org.fusesource.jansi" % "jansi" % "2.1.0"
|
||||||
val scalatest = "org.scalatest" %% "scalatest" % "3.0.8"
|
val scalatest = "org.scalatest" %% "scalatest" % "3.2.10"
|
||||||
val scalacheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
|
val scalacheck = "org.scalacheck" %% "scalacheck" % "1.14.0"
|
||||||
val junit = "junit" % "junit" % "4.13.1"
|
val junit = "junit" % "junit" % "4.13.1"
|
||||||
val scalaVerify = "com.eed3si9n.verify" %% "verify" % "1.0.0"
|
val scalaVerify = "com.eed3si9n.verify" %% "verify" % "1.0.0"
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
import org.scalatest
|
import org.scalatest
|
||||||
import org.scalatest.{ TestData, fixture }
|
import org.scalatest.{ TestData, fixture, funsuite }
|
||||||
|
|
||||||
import scala.tools.reflect.{ FrontEnd, ToolBoxError }
|
import scala.tools.reflect.{ FrontEnd, ToolBoxError }
|
||||||
|
|
||||||
class IllegalReferenceSpec extends fixture.FunSuite with fixture.TestDataFixture {
|
class IllegalReferenceSpec extends funsuite.FixtureAnyFunSuite with fixture.TestDataFixture {
|
||||||
private def toolboxClasspath(td: TestData): String =
|
private def toolboxClasspath(td: TestData): String =
|
||||||
td.configMap.get("sbt.server.classpath") match {
|
td.configMap.get("sbt.server.classpath") match {
|
||||||
case Some(s: String) => s
|
case Some(s: String) => s
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ import sbt.io.syntax._
|
||||||
|
|
||||||
import CacheImplicits._
|
import CacheImplicits._
|
||||||
|
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
|
||||||
class CacheSpec extends FlatSpec {
|
class CacheSpec extends AnyFlatSpec {
|
||||||
|
|
||||||
"A cache" should "NOT throw an exception if read without being written previously" in {
|
"A cache" should "NOT throw an exception if read without being written previously" in {
|
||||||
testCache[String, Int] {
|
testCache[String, Int] {
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ package sbt.util
|
||||||
|
|
||||||
import sjsonnew.shaded.scalajson.ast.unsafe._
|
import sjsonnew.shaded.scalajson.ast.unsafe._
|
||||||
import sjsonnew._, support.scalajson.unsafe._
|
import sjsonnew._, support.scalajson.unsafe._
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
import sbt.io.IO
|
import sbt.io.IO
|
||||||
|
|
||||||
class FileInfoSpec extends FlatSpec {
|
class FileInfoSpec extends AnyFlatSpec {
|
||||||
val file = new java.io.File(".").getAbsoluteFile
|
val file = new java.io.File(".").getAbsoluteFile
|
||||||
val fileInfo: ModifiedFileInfo = FileModified(file, IO.getModifiedTimeOrZero(file))
|
val fileInfo: ModifiedFileInfo = FileModified(file, IO.getModifiedTimeOrZero(file))
|
||||||
val filesInfo = FilesInfo(Set(fileInfo))
|
val filesInfo = FilesInfo(Set(fileInfo))
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ import sbt.io.syntax._
|
||||||
import CacheImplicits._
|
import CacheImplicits._
|
||||||
|
|
||||||
import sjsonnew.{ Builder, deserializationError, JsonFormat, Unbuilder }
|
import sjsonnew.{ Builder, deserializationError, JsonFormat, Unbuilder }
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
|
|
||||||
class SingletonCacheSpec extends FlatSpec {
|
class SingletonCacheSpec extends AnyFlatSpec {
|
||||||
|
|
||||||
case class ComplexType(val x: Int, y: String, z: List[Int])
|
case class ComplexType(val x: Int, y: String, z: List[Int])
|
||||||
object ComplexType {
|
object ComplexType {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
package sbt.util
|
package sbt.util
|
||||||
|
|
||||||
import org.scalatest.FlatSpec
|
import org.scalatest.flatspec.AnyFlatSpec
|
||||||
import sbt.io.IO
|
import sbt.io.IO
|
||||||
import sbt.io.syntax._
|
import sbt.io.syntax._
|
||||||
import sbt.util.CacheImplicits._
|
import sbt.util.CacheImplicits._
|
||||||
|
|
@ -15,7 +15,7 @@ import sjsonnew.{ Builder, JsonWriter }
|
||||||
|
|
||||||
import scala.concurrent.Promise
|
import scala.concurrent.Promise
|
||||||
|
|
||||||
class TrackedSpec extends FlatSpec {
|
class TrackedSpec extends AnyFlatSpec {
|
||||||
"lastOutput" should "store the last output" in {
|
"lastOutput" should "store the last output" in {
|
||||||
withStore { store =>
|
withStore { store =>
|
||||||
val value = 5
|
val value = 5
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ import sbt.librarymanagement.ivy._
|
||||||
import sbt.util.Logger
|
import sbt.util.Logger
|
||||||
import xsbti.compile.CompilerBridgeProvider
|
import xsbti.compile.CompilerBridgeProvider
|
||||||
import org.scalatest._
|
import org.scalatest._
|
||||||
|
import org.scalatest.matchers.should.Matchers
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for test suites that must be able to fetch and compile the compiler bridge.
|
* Base class for test suites that must be able to fetch and compile the compiler bridge.
|
||||||
|
|
@ -24,7 +25,7 @@ import org.scalatest._
|
||||||
* This is a very good example on how to instantiate the compiler bridge provider.
|
* This is a very good example on how to instantiate the compiler bridge provider.
|
||||||
*/
|
*/
|
||||||
abstract class IvyBridgeProviderSpecification
|
abstract class IvyBridgeProviderSpecification
|
||||||
extends fixture.FlatSpec
|
extends flatspec.FixtureAnyFlatSpec
|
||||||
with fixture.TestDataFixture
|
with fixture.TestDataFixture
|
||||||
with Matchers {
|
with Matchers {
|
||||||
def currentBase: File = new File(".")
|
def currentBase: File = new File(".")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue