未验证 提交 b7638f28 编写于 作者: S Scala Steward 提交者: GitHub
上级 c728cfc0
......@@ -19,7 +19,7 @@ lazy val root = (project in file("."))
"org.apache.logging.log4j" % "log4j-core" % "2.14.1" % Test,
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.14.1" % Test,
"com.typesafe.play" %% "play-json" % "2.7.4" % Test,
"org.scalatest" %% "scalatest" % "3.0.9" % Test
"org.scalatest" %% "scalatest" % "3.2.9" % Test
), Compile / scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n <= 12 => Nil
......
package io.github.dreamylost
import org.scalatest.{ FlatSpec, Matchers }
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
/**
*
......@@ -8,7 +9,7 @@ import org.scalatest.{ FlatSpec, Matchers }
* @since 2021/6/30
* @version 1.0
*/
class ApplyTest extends FlatSpec with Matchers {
class ApplyTest extends AnyFlatSpec with Matchers {
"apply1" should "ok at class" in {
// int: Int => private[this] val int: Int = _;
......
package io.github.dreamylost
import org.scalatest.{ FlatSpec, Matchers }
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
/**
*
......@@ -8,7 +9,7 @@ import org.scalatest.{ FlatSpec, Matchers }
* @since 2021/6/19
* @version 1.0
*/
class BuilderTest extends FlatSpec with Matchers {
class BuilderTest extends AnyFlatSpec with Matchers {
"builder1" should "case class, non companion object" in {
@builder
......
package io.github.dreamylost
import org.scalatest.{ FlatSpec, Matchers }
import play.api.libs.json.Json
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
/**
*
......@@ -9,7 +10,7 @@ import play.api.libs.json.Json
* @since 2021/6/18
* @version 1.0
*/
class JsonTest extends FlatSpec with Matchers {
class JsonTest extends AnyFlatSpec with Matchers {
// class must be wrote here
......
package io.github.dreamylost
import org.scalatest.{ FlatSpec, Matchers }
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
/**
*
......@@ -8,7 +9,7 @@ import org.scalatest.{ FlatSpec, Matchers }
* @since 2021/6/28
* @version 1.0
*/
class LogTest extends FlatSpec with Matchers {
class LogTest extends AnyFlatSpec with Matchers {
"log1" should "ok on class" in {
"""@log(verbose=true) class TestClass1(val i: Int = 0, var j: Int) {
......
package io.github.dreamylost
import org.scalatest.{ FlatSpec, Matchers }
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
/**
*
......@@ -8,7 +9,7 @@ import org.scalatest.{ FlatSpec, Matchers }
* @since 2021/6/24
* @version 1.0
*/
class SynchronizedTest extends FlatSpec with Matchers {
class SynchronizedTest extends AnyFlatSpec with Matchers {
"synchronized1" should "is ok at class" in {
@synchronized
......
package io.github.dreamylost
import org.scalatest.{ FlatSpec, Matchers }
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
/**
*
......@@ -8,7 +9,7 @@ import org.scalatest.{ FlatSpec, Matchers }
* @since 2021/6/13
* @version 1.0
*/
class ToStringTest extends FlatSpec with Matchers {
class ToStringTest extends AnyFlatSpec with Matchers {
"toString1" should "not contains internal field" in {
@toString(false, false, false)
class TestClass(val i: Int = 0, var j: Int) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册