This is an automated email from the ASF dual-hosted git repository.
ilyak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 3a62a3d IGNITE-11906 Fix test for scala examples - Fixes #7284.
3a62a3d is described below
commit 3a62a3d7f4b859a4c8ac5e74595a258c67358a86
Author: Vasiliy Sisko <[email protected]>
AuthorDate: Wed Jan 29 13:11:18 2020 +0300
IGNITE-11906 Fix test for scala examples - Fixes #7284.
Signed-off-by: Ilya Kasnacheev <[email protected]>
---
.../tests/examples/ScalarExamplesSelfTest.scala | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git
a/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
b/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
index 28e509e..a76da9f 100644
---
a/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
+++
b/examples/src/test/scala/org/apache/ignite/scalar/tests/examples/ScalarExamplesSelfTest.scala
@@ -21,51 +21,60 @@ import org.apache.ignite.scalar.examples._
import org.apache.ignite.scalar.examples.spark._
import org.apache.ignite.scalar.scalar
import org.apache.ignite.testframework.junits.common.GridAbstractExamplesTest
-import org.scalatest.junit.JUnitSuiteLike
+import org.junit.Test
+import org.scalatest.Suite
/**
* Scalar examples self test.
*/
-class ScalarExamplesSelfTest extends GridAbstractExamplesTest with
JUnitSuiteLike {
+class ScalarExamplesSelfTest extends GridAbstractExamplesTest with Suite {
/** */
private def EMPTY_ARGS = Array.empty[String]
/** */
+ @Test
def testScalarCacheAffinitySimpleExample() {
ScalarCacheAffinityExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarCacheEntryProcessorExample() {
ScalarCacheEntryProcessorExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarCacheExample() {
ScalarCacheExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarCacheQueryExample() {
ScalarCacheQueryExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarClosureExample() {
ScalarClosureExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarContinuationExample() {
ScalarContinuationExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarCreditRiskExample() {
ScalarCreditRiskExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarPingPongExample() {
scalar("modules/scalar/src/test/resources/spring-ping-pong-partner.xml") {
ScalarPingPongExample.main(EMPTY_ARGS)
@@ -73,31 +82,37 @@ class ScalarExamplesSelfTest extends
GridAbstractExamplesTest with JUnitSuiteLik
}
/** */
+ @Test
def testScalarPopularNumbersRealTimeExample() {
ScalarCachePopularNumbersExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarPrimeExample() {
ScalarPrimeExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarTaskExample() {
ScalarTaskExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarWorldShortestMapReduceExample() {
ScalarWorldShortestMapReduce.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarSnowflakeSchemaExample() {
ScalarSnowflakeSchemaExample.main(EMPTY_ARGS)
}
/** */
+ @Test
def testScalarSharedRDDExample() {
ScalarSharedRDDExample.main(EMPTY_ARGS)
}