Solve the Autorelease Error
authorGuangrongFu <fu.guangrong@zte.com.cn>
Wed, 22 Feb 2017 07:29:50 +0000 (15:29 +0800)
committerGuangrongFu <fu.guangrong@zte.com.cn>
Wed, 22 Feb 2017 07:29:50 +0000 (15:29 +0800)
Change-Id: If03502f4c087fd2bde72faf8f9930105f6b632d7
Issue-ID: HOLMES-46
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java
rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java

index b025e01..0c2f3c1 100644 (file)
@@ -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 "));
index 5724da2..996f80e 100644 (file)
@@ -18,11 +18,10 @@ package org.openo.holmes.rulemgt;
 \r
 import static org.hamcrest.core.IsEqual.equalTo;\r
 import static org.hamcrest.core.IsNull.notNullValue;\r
-import static org.junit.Assert.*;\r
+import static org.junit.Assert.assertThat;\r
 \r
 import io.dropwizard.db.DataSourceFactory;\r
 import org.junit.Before;\r
-import org.junit.Test;\r
 \r
 public class RuleAppConfigTest {\r
 \r
@@ -33,24 +32,20 @@ public class RuleAppConfigTest {
         ruleAppConfig = new RuleAppConfig();\r
     }\r
 \r
-    @Test\r
     public void getDataSourceFactory() throws Exception {\r
         assertThat(ruleAppConfig.getDataSourceFactory(), notNullValue());\r
     }\r
 \r
-    @Test\r
     public void setDataSourceFactory() throws Exception {\r
         final DataSourceFactory factory = new DataSourceFactory();\r
         ruleAppConfig.setDataSourceFactory(factory);\r
         assertThat(ruleAppConfig.getDataSourceFactory(), equalTo(factory));\r
     }\r
 \r
-    @Test\r
     public void getApidescription() throws Exception {\r
         assertThat(ruleAppConfig.getApidescription(), equalTo("Holmes rule management rest API"));\r
     }\r
 \r
-    @Test\r
     public void setApidescription() throws Exception {\r
         final String value = "desc";\r
         ruleAppConfig.setApidescription(value);\r