You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ks...@apache.org on 2015/04/20 22:47:07 UTC
[2/2] servicemix git commit: Add Drools 6 feature installation test -
test class renamed
Add Drools 6 feature installation test
- test class renamed
Project: http://git-wip-us.apache.org/repos/asf/servicemix/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix/commit/e59a510c
Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/e59a510c
Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/e59a510c
Branch: refs/heads/master
Commit: e59a510ccfa4b073171de43fb32fc6dc33962e89
Parents: e6309c1
Author: Krzysztof Sobkowiak <kr...@gmail.com>
Authored: Mon Apr 20 22:45:29 2015 +0200
Committer: Krzysztof Sobkowiak <kr...@gmail.com>
Committed: Mon Apr 20 22:45:29 2015 +0200
----------------------------------------------------------------------
.../itests/Drools6IntegrationTest.scala | 71 ++++++++++++++++++++
.../itests/Drools6IntegrationTests.scala | 71 --------------------
2 files changed, 71 insertions(+), 71 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/servicemix/blob/e59a510c/itests/src/test/scala/org/apache/servicemix/itests/Drools6IntegrationTest.scala
----------------------------------------------------------------------
diff --git a/itests/src/test/scala/org/apache/servicemix/itests/Drools6IntegrationTest.scala b/itests/src/test/scala/org/apache/servicemix/itests/Drools6IntegrationTest.scala
new file mode 100644
index 0000000..f63bbac
--- /dev/null
+++ b/itests/src/test/scala/org/apache/servicemix/itests/Drools6IntegrationTest.scala
@@ -0,0 +1,71 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.itests
+
+import org.junit.runner.RunWith
+import org.junit.{ Ignore, Test }
+import org.ops4j.pax.exam.spi.reactors.{ PerMethod, PerClass, ExamReactorStrategy }
+import org.ops4j.pax.exam.Configuration
+import org.ops4j.pax.exam.junit.PaxExam
+import org.ops4j.pax.exam.CoreOptions._
+import org.ops4j.pax.exam.karaf.options.KarafDistributionOption._
+import org.apache.karaf.features.Feature
+
+/**
+ * Base configuration for all Drools 6 integration tests
+ */
+@RunWith(classOf[PaxExam])
+@ExamReactorStrategy(Array(classOf[PerClass]))
+class Drools6IntegrationTest extends ExamplesIntegrationTests {
+ /**
+ * Check feature installation
+ */
+ def installed(feature: String): Option[String] = {
+ var f: Feature = featuresService.getFeature(feature)
+ if (featuresService.isInstalled(f)) Some("Ok") else None
+ }
+
+ /**
+ * Test for The Drools 6 feature kie-aries-blueprint
+ */
+ @Test
+ def testKieBlueprintFeature = testWithFeature("kie-aries-blueprint") {
+ expect {
+ installed("kie-aries-blueprint")
+ }
+ }
+
+ /**
+ * Test for The Drools 6 feature kie-spring
+ */
+ @Test
+ def testKieSpringFeature = testWithFeature("kie-spring") {
+ expect {
+ installed("kie-spring")
+ }
+ }
+
+ /**
+ * Test for The Drools 6 feature kie-camel
+ */
+ @Test
+ def testKieCamelFeature = testWithFeature("kie-camel") {
+ expect {
+ installed("kie-camel")
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/servicemix/blob/e59a510c/itests/src/test/scala/org/apache/servicemix/itests/Drools6IntegrationTests.scala
----------------------------------------------------------------------
diff --git a/itests/src/test/scala/org/apache/servicemix/itests/Drools6IntegrationTests.scala b/itests/src/test/scala/org/apache/servicemix/itests/Drools6IntegrationTests.scala
deleted file mode 100644
index 14b1478..0000000
--- a/itests/src/test/scala/org/apache/servicemix/itests/Drools6IntegrationTests.scala
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.servicemix.itests
-
-import org.junit.runner.RunWith
-import org.junit.{ Ignore, Test }
-import org.ops4j.pax.exam.spi.reactors.{ PerMethod, PerClass, ExamReactorStrategy }
-import org.ops4j.pax.exam.Configuration
-import org.ops4j.pax.exam.junit.PaxExam
-import org.ops4j.pax.exam.CoreOptions._
-import org.ops4j.pax.exam.karaf.options.KarafDistributionOption._
-import org.apache.karaf.features.Feature
-
-/**
- * Base configuration for all Drools 6 integration tests
- */
-@RunWith(classOf[PaxExam])
-@ExamReactorStrategy(Array(classOf[PerClass]))
-class Drools6IntegrationTests extends ExamplesIntegrationTests {
- /**
- * Check feature installation
- */
- def installed(feature: String): Option[String] = {
- var f: Feature = featuresService.getFeature(feature)
- if (featuresService.isInstalled(f)) Some("Ok") else None
- }
-
- /**
- * Test for The Drools 6 feature kie-aries-blueprint
- */
- @Test
- def testKieBlueprintFeature = testWithFeature("kie-aries-blueprint") {
- expect {
- installed("kie-aries-blueprint")
- }
- }
-
- /**
- * Test for The Drools 6 feature kie-spring
- */
- @Test
- def testKieSpringFeature = testWithFeature("kie-spring") {
- expect {
- installed("kie-spring")
- }
- }
-
- /**
- * Test for The Drools 6 feature kie-camel
- */
- @Test
- def testKieCamelFeature = testWithFeature("kie-camel") {
- expect {
- installed("kie-camel")
- }
- }
-}