From a3cca480ef4e71cfbc9f70ccb7071c359d119225 Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Wed, 22 Feb 2017 15:29:50 +0800 Subject: Solve the Autorelease Error Change-Id: If03502f4c087fd2bde72faf8f9930105f6b632d7 Issue-ID: HOLMES-46 Signed-off-by: GuangrongFu --- .../src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java | 3 --- .../src/test/java/org/openo/holmes/rulemgt/RuleAppConfigTest.java | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'rulemgt/src/test/java/org/openo') 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); -- cgit 1.2.3-korg