We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c1fb65 commit a126f76Copy full SHA for a126f76
src/test/scala/org/scalatest/tools/maven/MojoUtilsTest.scala
@@ -1,6 +1,6 @@
1
package org.scalatest.tools.maven
2
3
-import org.junit.{Before, Test}
+import org.junit.{After, Before, Test}
4
5
class MojoUtilsTest {
6
private var savedJavaHome: Option[String] = _
@@ -10,6 +10,7 @@ class MojoUtilsTest {
10
savedJavaHome = Option(System.getProperty("java.home"))
11
}
12
13
+ @After
14
def restore() = {
15
savedJavaHome match {
16
case None => System.clearProperty("java.home")
0 commit comments