798 pass, 415 fail, 2 ignored of 3230 tests
This commit is contained in:
parent
417d2108ab
commit
384205ef6a
5 changed files with 30 additions and 7 deletions
5
NOTES
5
NOTES
|
@ -1,4 +1,7 @@
|
||||||
|
* Migrate to Scala
|
||||||
|
* Fix @Ignore'ed JUnit tests
|
||||||
|
* TODO/XXX/FIXME/JE_TEST
|
||||||
|
* begin/end JE only
|
||||||
* Kafka for log
|
* Kafka for log
|
||||||
* Remove all @Deprecated features
|
* Remove all @Deprecated features
|
||||||
|
|
||||||
|
|
24
build.sbt
24
build.sbt
|
@ -25,6 +25,11 @@ inThisBuild(
|
||||||
scalaVersion := scala212,
|
scalaVersion := scala212,
|
||||||
crossScalaVersions := List(scala213, scala212, scala211),
|
crossScalaVersions := List(scala213, scala212, scala211),
|
||||||
resolvers += Resolver.sonatypeRepo("releases"),
|
resolvers += Resolver.sonatypeRepo("releases"),
|
||||||
|
scalacOptions ++= Seq(
|
||||||
|
"-unchecked",
|
||||||
|
"-deprecation",
|
||||||
|
// "-Xfatal-warnings"
|
||||||
|
),
|
||||||
libraryDependencies ++= List(
|
libraryDependencies ++= List(
|
||||||
scalatest.value % Test,
|
scalatest.value % Test,
|
||||||
scalacheck % Test,
|
scalacheck % Test,
|
||||||
|
@ -41,8 +46,6 @@ inThisBuild(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-q", "-v"))
|
|
||||||
|
|
||||||
skip in publish := true
|
skip in publish := true
|
||||||
|
|
||||||
commands += Command.command("ci-test") { s =>
|
commands += Command.command("ci-test") { s =>
|
||||||
|
@ -68,9 +71,10 @@ lazy val core = project
|
||||||
buildInfoSettings,
|
buildInfoSettings,
|
||||||
buildInfoPackage := "io.stasis",
|
buildInfoPackage := "io.stasis",
|
||||||
buildInfoObject := "BuildInfo",
|
buildInfoObject := "BuildInfo",
|
||||||
libraryDependencies ++= List(
|
projectDependencies ++= Seq(
|
||||||
scalatest.value % Test,
|
scalatest.value % Test,
|
||||||
scalametaTestkit % Test)
|
scalametaTestkit % Test
|
||||||
|
)
|
||||||
)
|
)
|
||||||
.enablePlugins(BuildInfoPlugin)
|
.enablePlugins(BuildInfoPlugin)
|
||||||
|
|
||||||
|
@ -90,11 +94,22 @@ lazy val rep = project
|
||||||
)
|
)
|
||||||
.dependsOn(core)
|
.dependsOn(core)
|
||||||
|
|
||||||
|
Test / fork := true
|
||||||
|
Test / parallelExecution := false
|
||||||
|
Test / logBuffered := false
|
||||||
|
|
||||||
lazy val test = project
|
lazy val test = project
|
||||||
.in(file("stasis-test"))
|
.in(file("stasis-test"))
|
||||||
.settings(
|
.settings(
|
||||||
moduleName := "stasis-test",
|
moduleName := "stasis-test",
|
||||||
assemblyJarName.in(assembly) := "stasis-test.jar",
|
assemblyJarName.in(assembly) := "stasis-test.jar",
|
||||||
|
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit,
|
||||||
|
"-a", "-q", "-v",
|
||||||
|
"-DJE_TEST=true",
|
||||||
|
"-Dbuilddir=${basedir}/build",
|
||||||
|
"-Dunittest.dir=${builddir}/test",
|
||||||
|
"-Dunittest.testclassloader=${unittest.dir}/testclassloader"
|
||||||
|
)),
|
||||||
crossPaths := false,
|
crossPaths := false,
|
||||||
libraryDependencies ++= List(
|
libraryDependencies ++= List(
|
||||||
"org.scalatest" %% "scalatest" % "2.2.2" % Test,
|
"org.scalatest" %% "scalatest" % "2.2.2" % Test,
|
||||||
|
@ -102,6 +117,7 @@ lazy val test = project
|
||||||
"com.novocode" % "junit-interface" % "0.11" % Test //exclude("junit", "junit-dep")
|
"com.novocode" % "junit-interface" % "0.11" % Test //exclude("junit", "junit-dep")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
.disablePlugins(plugins.JUnitXmlReportPlugin)
|
||||||
.dependsOn(core, persist, rep)
|
.dependsOn(core, persist, rep)
|
||||||
|
|
||||||
val V = "\\d+\\.\\d+\\.\\d+"
|
val V = "\\d+\\.\\d+\\.\\d+"
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class DbEnvPool {
|
||||||
if (envImpl != null) {
|
if (envImpl != null) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the envImpl intance returned is standalone, but users are
|
* If the envImpl instance returned is standalone, but users are
|
||||||
* actually creating a replicated environment, throw out an
|
* actually creating a replicated environment, throw out an
|
||||||
* UnsupportedOperationException. We needn't worry about the
|
* UnsupportedOperationException. We needn't worry about the
|
||||||
* read only property, since a replicated environment can't be
|
* read only property, since a replicated environment can't be
|
||||||
|
@ -209,7 +209,7 @@ public class DbEnvPool {
|
||||||
*
|
*
|
||||||
* Note that finishInit must be called even if an existing envImpl was
|
* Note that finishInit must be called even if an existing envImpl was
|
||||||
* found, because initialization (recovery) for that envImpl may not be
|
* found, because initialization (recovery) for that envImpl may not be
|
||||||
* complete. finishInit is synchronized and this ensures that recovery
|
* complete. finishInit() is synchronized and this ensures that recovery
|
||||||
* will be complete when it returns.
|
* will be complete when it returns.
|
||||||
*
|
*
|
||||||
* If this environment finishInit() fails in any way, make sure it
|
* If this environment finishInit() fails in any way, make sure it
|
||||||
|
|
|
@ -24,6 +24,7 @@ import java.util.Map;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Parameterized;
|
import org.junit.runners.Parameterized;
|
||||||
|
@ -51,6 +52,7 @@ 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 {
|
||||||
|
|
|
@ -20,6 +20,7 @@ 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;
|
||||||
|
@ -35,6 +36,7 @@ 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 {
|
||||||
|
|
Loading…
Reference in a new issue