Skip to content

Commit

Permalink
Made the source code to build with scalatest 3.3.0.0-alpha.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeseng committed Dec 15, 2023
1 parent 001ff49 commit cde56a7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 27 deletions.
19 changes: 9 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name := "junit-4.13"

organization := "org.scalatestplus"

version := "3.2.17.0"
version := "3.3.0.0-alpha.1"

homepage := Some(url("https://github.com/scalatest/scalatestplus-junit"))

Expand All @@ -26,14 +26,13 @@ developers := List(
)
)

scalaVersion := "2.13.11"
scalaVersion := "2.13.12"

crossScalaVersions := List(
"2.10.7",
"2.11.12",
"2.12.17",
"2.13.11",
"3.1.3"
"2.13.12",
"3.3.1"
)

/** Add src/main/scala-{2|3} to Compile / unmanagedSourceDirectories */
Expand All @@ -46,12 +45,12 @@ Compile / unmanagedSourceDirectories ++= {
}

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest-core" % "3.2.17",
"org.scalatest" %% "scalatest-core" % "3.3.0-alpha.1",
"junit" % "junit" % "4.13.2",
"org.scalatest" %% "scalatest-wordspec" % "3.2.17" % "test",
"org.scalatest" %% "scalatest-funspec" % "3.2.17" % "test",
"org.scalatest" %% "scalatest-funsuite" % "3.2.17" % "test",
"org.scalatest" %% "scalatest-shouldmatchers" % "3.2.17" % "test"
"org.scalatest" %% "scalatest-wordspec" % "3.3.0-alpha.1" % "test",
"org.scalatest" %% "scalatest-funspec" % "3.3.0-alpha.1" % "test",
"org.scalatest" %% "scalatest-funsuite" % "3.3.0-alpha.1" % "test",
"org.scalatest" %% "scalatest-shouldmatchers" % "3.3.0-alpha.1" % "test"
)

import scala.xml.{Node => XmlNode, NodeSeq => XmlNodeSeq, _}
Expand Down
7 changes: 0 additions & 7 deletions src/main/scala/org/scalatestplus/junit/JUnit3Suite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,6 @@ class JUnit3Suite extends TestCase with Suite with AssertionsForJUnit { thisSuit
status.setCompleted()
status
}

/**
* Suite style name.
*
* @return <code>JUnit3Suite</code>
*/
final override val styleName: String = "JUnit3Suite"

final override def testDataFor(testName: String, theConfigMap: ConfigMap = ConfigMap.empty): TestData =
new TestData {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/scalatestplus/junit/JUnitRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ final class JUnitRunner(suiteClass: java.lang.Class[_ <: Suite]) extends org.jun
// TODO: What should this Tracker be?
suiteToRun.run(None, Args(new RunNotifierReporter(notifier),
Stopper.default, Filter(), ConfigMap.empty, None,
new Tracker, Set.empty))
new Tracker))
}
catch {
case e: Exception =>
Expand Down
7 changes: 0 additions & 7 deletions src/main/scala/org/scalatestplus/junit/JUnitSuiteLike.scala
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,6 @@ trait JUnitSuiteLike extends Suite with AssertionsForJUnit { thisSuite =>
status.setCompleted()
status
}

/**
* Suite style name.
*
* @return <code>JUnitSuite</code>
*/
final override val styleName: String = "JUnitSuite"

// verifySomething(org.scalatest.junit.helpers.HappySuite)
// Description.displayName of a test report has the form <testMethodName>(<suiteClassName>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class JUnit3SuiteSpec extends funspec.AnyFunSpec {
TestWasCalledSuite.reinitialize()

val a = new TestWasCalledSuite
a.run(None, Args(SilentReporter, Stopper.default, Filter(Some(Set("org.scalatest.SlowAsMolasses")), Set()), ConfigMap.empty, None, new Tracker, Set.empty))
a.run(None, Args(SilentReporter, Stopper.default, Filter(Some(Set("org.scalatest.SlowAsMolasses")), Set()), ConfigMap.empty, None, new Tracker))
assert(!TestWasCalledSuite.theTestThisCalled)
assert(!TestWasCalledSuite.theTestThatCalled)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class JUnitSuiteSpec extends funspec.AnyFunSpec {
TestWasCalledSuite.reinitialize()

val a = new TestWasCalledSuite
a.run(None, Args(SilentReporter, Stopper.default, Filter(Some(Set("org.scalatest.SlowAsMolasses")), Set()), ConfigMap.empty, None, new Tracker, Set.empty))
a.run(None, Args(SilentReporter, Stopper.default, Filter(Some(Set("org.scalatest.SlowAsMolasses")), Set()), ConfigMap.empty, None, new Tracker))
assert(!TestWasCalledSuite.theDoThisCalled)
assert(!TestWasCalledSuite.theDoThatCalled)
}
Expand Down

0 comments on commit cde56a7

Please sign in to comment.