Tests failed: 19, passed: 2780, ignored 48.

This commit is contained in:
Greg Burd 2019-08-09 18:08:13 -04:00
parent a94fda766f
commit c94ce2c952
7 changed files with 21 additions and 6 deletions

View file

@ -152,6 +152,22 @@ lazy val test = project
.disablePlugins(plugins.JUnitXmlReportPlugin) .disablePlugins(plugins.JUnitXmlReportPlugin)
.dependsOn(core, persist, rep) .dependsOn(core, persist, rep)
lazy val test_examples = project
.in(file("stasis-test-examples"))
.settings(
moduleName := "stasis-test-examples",
assemblyJarName.in(assembly) := "stasis-test-examples.jar",
Test / javacOptions := Seq(
"-Xlint:deprecation",
"-Xlint:unchecked"
),
libraryDependencies ++= Seq(
"junit" % "junit" % "4.12" % Test,
"com.novocode" % "junit-interface" % "0.11" % Test
)
)
.dependsOn(core, persist, rep, test)
val V = "\\d+\\.\\d+\\.\\d+" val V = "\\d+\\.\\d+\\.\\d+"
val ReleaseCandidate = s"($V-RC\\d+).*".r val ReleaseCandidate = s"($V-RC\\d+).*".r
val Milestone = s"($V-M\\d+).*".r val Milestone = s"($V-M\\d+).*".r

View file

@ -52,7 +52,6 @@ import com.sleepycat.util.test.TestEnv;
* *
* @author Mark Hayes * @author Mark Hayes
*/ */
@Ignore
@RunWith(Parameterized.class) @RunWith(Parameterized.class)
public class StoredClassCatalogTest extends TestBase public class StoredClassCatalogTest extends TestBase
implements TransactionWorker { implements TransactionWorker {
@ -158,7 +157,8 @@ public class StoredClassCatalogTest extends TestBase
runner = null; runner = null;
} }
} }
@Ignore
@Test @Test
public void runTest() public void runTest()
throws Exception { throws Exception {

View file

@ -50,7 +50,6 @@ import com.sleepycat.util.test.TestEnv;
* *
* @author Mark Hayes * @author Mark Hayes
*/ */
@Ignore
@RunWith(Parameterized.class) @RunWith(Parameterized.class)
public class StoredClassCatalogTestInit extends TestBase public class StoredClassCatalogTestInit extends TestBase
implements TransactionWorker { implements TransactionWorker {
@ -146,6 +145,7 @@ public class StoredClassCatalogTestInit extends TestBase
} }
} }
@Ignore
@Test @Test
public void runTest() public void runTest()
throws Exception { throws Exception {

View file

@ -20,7 +20,6 @@ import java.io.File;
import java.util.Comparator; import java.util.Comparator;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import com.sleepycat.bind.serial.SerialBinding; import com.sleepycat.bind.serial.SerialBinding;
@ -36,7 +35,6 @@ import com.sleepycat.util.test.SharedTestUtils;
/** /**
* Tests the Environment ClassLoader property. * Tests the Environment ClassLoader property.
*/ */
@Ignore
public class ClassLoaderTest extends DualTestCase { public class ClassLoaderTest extends DualTestCase {
public interface LoadedClass { public interface LoadedClass {
@ -72,7 +70,8 @@ public class ClassLoaderTest extends DualTestCase {
String classLoaderPath = System.getProperty("testclassloader"); String classLoaderPath = System.getProperty("testclassloader");
if (classLoaderPath == null) { if (classLoaderPath == null) {
classLoaderPath = SharedTestUtils.getTestDir().getParent() + File.separator + "classloader"; String cwd = new java.io.File( "." ).getCanonicalFile().getParent();
classLoaderPath = cwd + "/stasis-test-examples/target/scala-2.12/test-classes";
} }
File classLoaderFile = new File(classLoaderPath); File classLoaderFile = new File(classLoaderPath);
if (!(classLoaderFile.exists() && classLoaderFile.isDirectory())) { if (!(classLoaderFile.exists() && classLoaderFile.isDirectory())) {