diff options
Diffstat (limited to 'rulemgt/src/test/java/org/openo')
-rw-r--r-- | rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java | 3 | ||||
-rw-r--r-- | rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java | 7 |
2 files changed, 1 insertions, 9 deletions
diff --git a/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java b/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java index b025e01..0c2f3c1 100644 --- a/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java +++ b/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java @@ -19,11 +19,8 @@ package org.openo.holmes.rulemgt; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.IsEqual.equalTo; -import org.junit.Test; - public class RuleActiveAppTest { - @Test public void getName() throws Exception { RuleActiveApp app = new RuleActiveApp(); assertThat(app.getName(), equalTo("Holmes Rule Management ActiveApp APP ")); diff --git a/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java b/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java index 5724da2..996f80e 100644 --- a/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java +++ b/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java @@ -18,11 +18,10 @@ package org.openo.holmes.rulemgt; import static org.hamcrest.core.IsEqual.equalTo;
import static org.hamcrest.core.IsNull.notNullValue;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertThat;
import io.dropwizard.db.DataSourceFactory;
import org.junit.Before;
-import org.junit.Test;
public class RuleAppConfigTest {
@@ -33,24 +32,20 @@ public class RuleAppConfigTest { ruleAppConfig = new RuleAppConfig();
}
- @Test
public void getDataSourceFactory() throws Exception {
assertThat(ruleAppConfig.getDataSourceFactory(), notNullValue());
}
- @Test
public void setDataSourceFactory() throws Exception {
final DataSourceFactory factory = new DataSourceFactory();
ruleAppConfig.setDataSourceFactory(factory);
assertThat(ruleAppConfig.getDataSourceFactory(), equalTo(factory));
}
- @Test
public void getApidescription() throws Exception {
assertThat(ruleAppConfig.getApidescription(), equalTo("Holmes rule management rest API"));
}
- @Test
public void setApidescription() throws Exception {
final String value = "desc";
ruleAppConfig.setApidescription(value);
|