You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2012/09/07 15:33:43 UTC
svn commit: r1382022 -
/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/
Author: jbonofre
Date: Fri Sep 7 13:33:42 2012
New Revision: 1382022
URL: http://svn.apache.org/viewvc?rev=1382022&view=rev
Log:
[KARAF-1798] Improve itests and add diag command itest
Added:
karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafConfigCommandsTest.java
karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafDiagCommandsTest.java
Modified:
karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafBundleCommandsTest.java
karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafEnterpriseFeaturesTest.java
karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafSpringFeaturesTest.java
karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafStandardFeaturesTest.java
Modified: karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafBundleCommandsTest.java
URL: http://svn.apache.org/viewvc/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafBundleCommandsTest.java?rev=1382022&r1=1382021&r2=1382022&view=diff
==============================================================================
--- karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafBundleCommandsTest.java (original)
+++ karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafBundleCommandsTest.java Fri Sep 7 13:33:42 2012
@@ -19,6 +19,7 @@ import org.ops4j.pax.exam.junit.ExamReac
import org.ops4j.pax.exam.junit.JUnit4TestRunner;
import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@RunWith(JUnit4TestRunner.class)
@@ -29,7 +30,7 @@ public class KarafBundleCommandsTest ext
public void testBundleCapabilitiesCommand() throws Exception {
String allCapabilitiesOutput = executeCommand("bundle:capabilities");
System.out.println(allCapabilitiesOutput);
- assertTrue(!allCapabilitiesOutput.isEmpty());
+ assertFalse(allCapabilitiesOutput.isEmpty());
String jmxWhiteboardBundleCapabilitiesOutput = executeCommand("bundle:capabilities 74");
System.out.println(jmxWhiteboardBundleCapabilitiesOutput);
assertTrue(jmxWhiteboardBundleCapabilitiesOutput.contains("osgi.wiring.bundle; org.apache.aries.jmx.whiteboard 1.0.0 [UNUSED]"));
@@ -39,7 +40,7 @@ public class KarafBundleCommandsTest ext
public void testBundleClassesCommand() throws Exception {
String allClassesOutput = executeCommand("bundle:classes");
System.out.println(allClassesOutput);
- assertTrue(!allClassesOutput.isEmpty());
+ assertFalse(allClassesOutput.isEmpty());
String jmxWhiteboardBundleClassesOutput = executeCommand("bundle:classes 74");
System.out.println(jmxWhiteboardBundleClassesOutput);
assertTrue(jmxWhiteboardBundleClassesOutput.contains("org/apache/aries/jmx/whiteboard/Activator$MBeanTracker.class"));
@@ -49,14 +50,14 @@ public class KarafBundleCommandsTest ext
public void testBundleDiagCommand() throws Exception {
String allDiagOutput = executeCommand("bundle:diag");
System.out.println(allDiagOutput);
- assertTrue(!allDiagOutput.isEmpty());
+ assertFalse(allDiagOutput.isEmpty());
}
@Test
public void testBundleFindClassCommand() throws Exception {
String findClassOutput = executeCommand("bundle:find-class jmx");
System.out.println(findClassOutput);
- assertTrue(!findClassOutput.isEmpty());
+ assertFalse(findClassOutput.isEmpty());
}
@Test
@@ -78,14 +79,14 @@ public class KarafBundleCommandsTest ext
System.out.println(executeCommand("bundle:install mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_6"));
String bundleListOutput = executeCommand("bundle:list -l | grep -i commons-lang");
System.out.println(bundleListOutput);
- assertTrue(!bundleListOutput.isEmpty());
+ assertFalse(bundleListOutput.isEmpty());
}
@Test
public void testBundleShowTreeCommand() throws Exception {
String bundleTreeOutput = executeCommand("bundle:tree-show 69");
System.out.println(bundleTreeOutput);
- assertTrue(!bundleTreeOutput.isEmpty());
+ assertFalse(bundleTreeOutput.isEmpty());
}
}
Added: karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafConfigCommandsTest.java
URL: http://svn.apache.org/viewvc/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafConfigCommandsTest.java?rev=1382022&view=auto
==============================================================================
--- karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafConfigCommandsTest.java (added)
+++ karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafConfigCommandsTest.java Fri Sep 7 13:33:42 2012
@@ -0,0 +1,38 @@
+/*
+ * Licensed 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.karaf.itests;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.junit.ExamReactorStrategy;
+import org.ops4j.pax.exam.junit.JUnit4TestRunner;
+import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory;
+
+import static org.junit.Assert.assertFalse;
+
+@RunWith(JUnit4TestRunner.class)
+@ExamReactorStrategy(AllConfinedStagedReactorFactory.class)
+public class KarafConfigCommandsTest extends KarafTestSupport {
+
+ @Test
+ public void testConfigListCommand() throws Exception {
+ String configListOutput = executeCommand("config:list");
+ System.out.println(configListOutput);
+ assertFalse(configListOutput.isEmpty());
+ configListOutput = executeCommand("config:list \"(service.pid=org.apache.karaf.features)\"");
+ System.out.println(configListOutput);
+ assertFalse(configListOutput.isEmpty());
+ }
+
+}
Added: karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafDiagCommandsTest.java
URL: http://svn.apache.org/viewvc/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafDiagCommandsTest.java?rev=1382022&view=auto
==============================================================================
--- karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafDiagCommandsTest.java (added)
+++ karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafDiagCommandsTest.java Fri Sep 7 13:33:42 2012
@@ -0,0 +1,35 @@
+/*
+ * Licensed 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.karaf.itests;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.junit.ExamReactorStrategy;
+import org.ops4j.pax.exam.junit.JUnit4TestRunner;
+import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory;
+
+import static org.junit.Assert.assertTrue;
+
+@RunWith(JUnit4TestRunner.class)
+@ExamReactorStrategy(AllConfinedStagedReactorFactory.class)
+public class KarafDiagCommandsTest extends KarafTestSupport {
+
+ @Test
+ public void testDumpCreateCommand() throws Exception {
+ String dumpCreateOutput = executeCommand("dev:dump-create");
+ System.out.println(dumpCreateOutput);
+ assertTrue(dumpCreateOutput.contains("Diagnostic dump created."));
+ }
+
+}
Modified: karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafEnterpriseFeaturesTest.java
URL: http://svn.apache.org/viewvc/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafEnterpriseFeaturesTest.java?rev=1382022&r1=1382021&r2=1382022&view=diff
==============================================================================
--- karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafEnterpriseFeaturesTest.java (original)
+++ karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafEnterpriseFeaturesTest.java Fri Sep 7 13:33:42 2012
@@ -19,7 +19,7 @@ import org.ops4j.pax.exam.junit.ExamReac
import org.ops4j.pax.exam.junit.JUnit4TestRunner;
import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
@RunWith(JUnit4TestRunner.class)
@ExamReactorStrategy(AllConfinedStagedReactorFactory.class)
@@ -29,28 +29,28 @@ public class KarafEnterpriseFeaturesTest
public void installTransactionFeature() throws Exception {
executeCommand("feature:install transaction");
String transactionFeatureStatus = executeCommand("feature:list -i | grep transaction");
- assertTrue("transaction feature is not installed", !transactionFeatureStatus.isEmpty());
+ assertFalse("transaction feature is not installed", transactionFeatureStatus.isEmpty());
}
@Test
public void installJpaFeature() throws Exception {
executeCommand("feature:install jpa");
String jpaFeatureStatus = executeCommand("feature:list -i | grep jpa");
- assertTrue("jpa feature is not installed", !jpaFeatureStatus.isEmpty());
+ assertFalse("jpa feature is not installed", jpaFeatureStatus.isEmpty());
}
@Test
public void installJndiFeature() throws Exception {
executeCommand("feature:install jndi");
String jndiFeatureStatus = executeCommand("feature:list -i | grep jndi");
- assertTrue("jndi feature is not installed", !jndiFeatureStatus.isEmpty());
+ assertFalse("jndi feature is not installed", jndiFeatureStatus.isEmpty());
}
@Test
public void installApplicationWithoutIsolationFeature() throws Exception {
executeCommand("feature:install application-without-isolation");
String applicationWithoutIsolationFeatureStatus = executeCommand("feature:list -i | grep application-without-isolation");
- assertTrue("application-without-isolation feature is not installed", !applicationWithoutIsolationFeatureStatus.isEmpty());
+ assertFalse("application-without-isolation feature is not installed", applicationWithoutIsolationFeatureStatus.isEmpty());
}
}
Modified: karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafSpringFeaturesTest.java
URL: http://svn.apache.org/viewvc/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafSpringFeaturesTest.java?rev=1382022&r1=1382021&r2=1382022&view=diff
==============================================================================
--- karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafSpringFeaturesTest.java (original)
+++ karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafSpringFeaturesTest.java Fri Sep 7 13:33:42 2012
@@ -20,7 +20,7 @@ import org.ops4j.pax.exam.junit.ExamReac
import org.ops4j.pax.exam.junit.JUnit4TestRunner;
import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
@RunWith(JUnit4TestRunner.class)
@ExamReactorStrategy(AllConfinedStagedReactorFactory.class)
@@ -30,49 +30,49 @@ public class KarafSpringFeaturesTest ext
public void installSpringFeature() throws Exception {
executeCommand("feature:install spring");
String springFeatureStatus = executeCommand("feature:list -i | grep spring");
- assertTrue("spring feature is not installed", !springFeatureStatus.isEmpty());
+ assertFalse("spring feature is not installed", springFeatureStatus.isEmpty());
}
@Test
public void installSpringAspectsFeature() throws Exception {
executeCommand("feature:install spring-aspects");
String springAspectsFeatureStatus = executeCommand("feature:list -i | grep spring-aspects");
- assertTrue("spring-aspects feature is not installed", !springAspectsFeatureStatus.isEmpty());
+ assertFalse("spring-aspects feature is not installed", springAspectsFeatureStatus.isEmpty());
}
@Test
public void installSpringDmFeature() throws Exception {
executeCommand("feature:install spring-dm");
String springDmFeatureStatus = executeCommand("feature:list -i | grep spring-dm");
- assertTrue("spring-dm feature is not installed", !springDmFeatureStatus.isEmpty());
+ assertFalse("spring-dm feature is not installed", springDmFeatureStatus.isEmpty());
}
@Test
public void installSpringDmWebFeature() throws Exception {
executeCommand("feature:install spring-dm-web");
String springDmWebFeatureStatus = executeCommand("feature:list -i | grep spring-dm-web");
- assertTrue("spring-dm-web feature is not installed", !springDmWebFeatureStatus.isEmpty());
+ assertFalse("spring-dm-web feature is not installed", springDmWebFeatureStatus.isEmpty());
}
@Test
public void installSpringInstrumentFeature() throws Exception {
executeCommand("feature:install spring-instrument");
String springInstrumentFeatureStatus = executeCommand("feature:list -i | grep spring-instrument");
- assertTrue("spring-instrument feature is not installed", !springInstrumentFeatureStatus.isEmpty());
+ assertFalse("spring-instrument feature is not installed", springInstrumentFeatureStatus.isEmpty());
}
@Test
public void installSpringJdbcFeature() throws Exception {
executeCommand("feature:install spring-jdbc");
String springJdbcFeatureStatus = executeCommand("feature:list -i | grep spring-jdbc");
- assertTrue("spring-jdbc feature is not installed", !springJdbcFeatureStatus.isEmpty());
+ assertFalse("spring-jdbc feature is not installed", springJdbcFeatureStatus.isEmpty());
}
@Test
public void installSpringJmsFeature() throws Exception {
executeCommand("feature:install spring-jms");
String springJmsFeatureStatus = executeCommand("feature:list -i | grep spring-jms");
- assertTrue("spring-jms feature is not installed", !springJmsFeatureStatus.isEmpty());
+ assertFalse("spring-jms feature is not installed", springJmsFeatureStatus.isEmpty());
}
@Test
@@ -81,42 +81,42 @@ public class KarafSpringFeaturesTest ext
public void installSpringStrutsFeature() throws Exception {
executeCommand("feature:install spring-struts");
String springStrutsFeatureStatus = executeCommand("feature:list -i | grep spring-struts");
- assertTrue("spring-struts feature is not installed", !springStrutsFeatureStatus.isEmpty());
+ assertFalse("spring-struts feature is not installed", springStrutsFeatureStatus.isEmpty());
}
@Test
public void installSpringTestFeature() throws Exception {
executeCommand("feature:install spring-test");
String springTestFeatureStatus = executeCommand("feature:list -i | grep spring-test");
- assertTrue("spring-test feature is not installed", !springTestFeatureStatus.isEmpty());
+ assertFalse("spring-test feature is not installed", springTestFeatureStatus.isEmpty());
}
@Test
public void installSpringOrmFeature() throws Exception {
executeCommand("feature:install spring-orm");
String springOrmFeatureStatus = executeCommand("feature:list -i | grep spring-orm");
- assertTrue("spring-orm feature is not installed", !springOrmFeatureStatus.isEmpty());
+ assertFalse("spring-orm feature is not installed", springOrmFeatureStatus.isEmpty());
}
@Test
public void installSpringOxmFeature() throws Exception {
executeCommand("feature:install spring-oxm");
String springOxmFeatureStatus = executeCommand("feature:list -i | grep spring-oxm");
- assertTrue("spring-oxm feature is not installed", !springOxmFeatureStatus.isEmpty());
+ assertFalse("spring-oxm feature is not installed", springOxmFeatureStatus.isEmpty());
}
@Test
public void installSpringTxFeature() throws Exception {
executeCommand("feature:install spring-tx");
String springTxFeatureStatus = executeCommand("feature:list -i | grep spring-tx");
- assertTrue("spring-tx feature is not installed", !springTxFeatureStatus.isEmpty());
+ assertFalse("spring-tx feature is not installed", springTxFeatureStatus.isEmpty());
}
@Test
public void installSpringWebFeature() throws Exception {
executeCommand("feature:install spring-web");
String springWebFeatureStatus = executeCommand("feature:list -i | grep spring-web");
- assertTrue("spring-web feature is not installed", !springWebFeatureStatus.isEmpty());
+ assertFalse("spring-web feature is not installed", springWebFeatureStatus.isEmpty());
}
@Test
@@ -125,14 +125,14 @@ public class KarafSpringFeaturesTest ext
public void installSpringWebPortletFeature() throws Exception {
executeCommand("feature:install spring-web-portlet");
String springWebPortletFeatureStatus = executeCommand("feature:list -i | grep spring-web-portlet");
- assertTrue("spring-web-portlet feature is not installed", !springWebPortletFeatureStatus.isEmpty());
+ assertFalse("spring-web-portlet feature is not installed", springWebPortletFeatureStatus.isEmpty());
}
@Test
public void installGeminiBlueprintFeature() throws Exception {
executeCommand("feature:install gemini-blueprint");
String geminiBlueprintFeatureStatus = executeCommand("feature:list -i | grep gemini-blueprint");
- assertTrue("gemini-blueprint feature is not installed", !geminiBlueprintFeatureStatus.isEmpty());
+ assertFalse("gemini-blueprint feature is not installed", geminiBlueprintFeatureStatus.isEmpty());
}
}
Modified: karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafStandardFeaturesTest.java
URL: http://svn.apache.org/viewvc/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafStandardFeaturesTest.java?rev=1382022&r1=1382021&r2=1382022&view=diff
==============================================================================
--- karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafStandardFeaturesTest.java (original)
+++ karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafStandardFeaturesTest.java Fri Sep 7 13:33:42 2012
@@ -20,7 +20,7 @@ import org.ops4j.pax.exam.junit.ExamReac
import org.ops4j.pax.exam.junit.JUnit4TestRunner;
import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
@RunWith(JUnit4TestRunner.class)
@ExamReactorStrategy(AllConfinedStagedReactorFactory.class)
@@ -30,102 +30,102 @@ public class KarafStandardFeaturesTest e
public void testBootFeatures() throws Exception {
// standard feature
String standardFeatureStatus = executeCommand("feature:list -i | grep standard");
- assertTrue("standard feature is not installed", !standardFeatureStatus.isEmpty());
+ assertFalse("standard feature is not installed", standardFeatureStatus.isEmpty());
// config feature
String configFeatureStatus = executeCommand("feature:list -i | grep config");
- assertTrue("config feature is not installed", !configFeatureStatus.isEmpty());
+ assertFalse("config feature is not installed", configFeatureStatus.isEmpty());
// region feature
String regionFeatureStatus = executeCommand("feature:list -i | grep region");
- assertTrue("region feature is not installed", !regionFeatureStatus.isEmpty());
+ assertFalse("region feature is not installed", regionFeatureStatus.isEmpty());
// package feature
String packageFeatureStatus = executeCommand("feature:list -i | grep package");
- assertTrue("package feature is not installed", !packageFeatureStatus.isEmpty());
+ assertFalse("package feature is not installed", packageFeatureStatus.isEmpty());
// kar feature
String karFeatureStatus = executeCommand("feature:list -i | grep kar");
- assertTrue("kar feature is not installed", !karFeatureStatus.isEmpty());
+ assertFalse("kar feature is not installed", karFeatureStatus.isEmpty());
// ssh feature
String sshFeatureStatus = executeCommand("feature:list -i | grep ssh");
- assertTrue("ssh feature is not installed", !sshFeatureStatus.isEmpty());
+ assertFalse("ssh feature is not installed", sshFeatureStatus.isEmpty());
// management feature
String managementFeatureStatus = executeCommand("feature:list -i | grep management");
- assertTrue("management feature is not installed", !managementFeatureStatus.isEmpty());
+ assertFalse("management feature is not installed", managementFeatureStatus.isEmpty());
}
@Test
public void installWrapperFeature() throws Exception {
executeCommand("feature:install wrapper");
String wrapperFeatureStatus = executeCommand("feature:list -i | grep wrapper");
- assertTrue("wrapper feature is not installed", !wrapperFeatureStatus.isEmpty());
+ assertFalse("wrapper feature is not installed", wrapperFeatureStatus.isEmpty());
}
@Test
public void installObrFeature() throws Exception {
executeCommand("feature:install obr");
String obrFeatureStatus = executeCommand("feature:list -i | grep obr");
- assertTrue("obr feature is not installed", !obrFeatureStatus.isEmpty());
+ assertFalse("obr feature is not installed", obrFeatureStatus.isEmpty());
}
@Test
public void installJettyFeature() throws Exception {
executeCommand("feature:install jetty");
String jettyFeatureStatus = executeCommand("feature:list -i | grep jetty");
- assertTrue("jetty feature is not installed", !jettyFeatureStatus.isEmpty());
+ assertFalse("jetty feature is not installed", jettyFeatureStatus.isEmpty());
}
@Test
public void installHttpFeature() throws Exception {
executeCommand("feature:install http");
String httpFeatureStatus = executeCommand("feature:list -i | grep http");
- assertTrue("http feature is not installed", !httpFeatureStatus.isEmpty());
+ assertFalse("http feature is not installed", httpFeatureStatus.isEmpty());
}
@Test
public void installHttpWhiteboardFeature() throws Exception {
executeCommand("feature:install http-whiteboard");
String httpWhiteboardFeatureStatus = executeCommand("feature:list -i | grep http-whiteboard");
- assertTrue("http-whiteboard feature is not installed", !httpWhiteboardFeatureStatus.isEmpty());
+ assertFalse("http-whiteboard feature is not installed", httpWhiteboardFeatureStatus.isEmpty());
}
@Test
public void installWarFeature() throws Exception {
executeCommand("feature:install war");
String warFeatureStatus = executeCommand("feature:list -i | grep war");
- assertTrue("war feature is not installed", !warFeatureStatus.isEmpty());
+ assertFalse("war feature is not installed", warFeatureStatus.isEmpty());
}
@Test
public void installWebConsoleFeature() throws Exception {
executeCommand("feature:install webconsole");
String webConsoleFeatureStatus = executeCommand("feature:list -i | grep webconsole");
- assertTrue("webconsole feature is not installed", !webConsoleFeatureStatus.isEmpty());
+ assertFalse("webconsole feature is not installed", webConsoleFeatureStatus.isEmpty());
}
@Test
public void installSchedulerFeature() throws Exception {
executeCommand("feature:install scheduler");
String schedulerFeatureStatus = executeCommand("feature:list -i | grep scheduler");
- assertTrue("scheduler feature is not installed", !schedulerFeatureStatus.isEmpty());
+ assertFalse("scheduler feature is not installed", schedulerFeatureStatus.isEmpty());
}
@Test
public void installEventAdminFeature() throws Exception {
executeCommand("feature:install eventadmin");
String eventAdminFeatureStatus = executeCommand("feature:list -i | grep eventadmin");
- assertTrue("eventadmin feature is not installed", !eventAdminFeatureStatus.isEmpty());
+ assertFalse("eventadmin feature is not installed", eventAdminFeatureStatus.isEmpty());
}
@Test
public void installJasyptEncryptionFeature() throws Exception {
executeCommand("feature:install jasypt-encryption");
String jasyptEncryptionFeatureStatus = executeCommand("feature:list -i | grep jasypt-encryption");
- assertTrue("jasypt-encryption feature is not installed", !jasyptEncryptionFeatureStatus.isEmpty());
+ assertFalse("jasypt-encryption feature is not installed", jasyptEncryptionFeatureStatus.isEmpty());
}
@Test
public void installScrFeature() throws Exception {
executeCommand("feature:install scr");
String scrFeatureStatus = executeCommand("feature:list -i | grep scr");
- assertTrue("scr feature is not installed", !scrFeatureStatus.isEmpty());
+ assertFalse("scr feature is not installed", scrFeatureStatus.isEmpty());
}
}