summaryrefslogtreecommitdiffstats
path: root/rulemgt/src/test/java/org/openo
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2017-02-22 15:29:50 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2017-02-22 15:29:50 +0800
commita3cca480ef4e71cfbc9f70ccb7071c359d119225 (patch)
tree45a4d424c50676d2a2c1ec3771ad47decd5c3bfa /rulemgt/src/test/java/org/openo
parente06a9a3d99ce327336f9d79a3843791bcb342369 (diff)
Solve the Autorelease Error
Change-Id: If03502f4c087fd2bde72faf8f9930105f6b632d7 Issue-ID: HOLMES-46 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt/src/test/java/org/openo')
-rw-r--r--rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java3
-rw-r--r--rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java7
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);