X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=rulemgt%2Fsrc%2Ftest%2Fjava%2Forg%2Fopeno%2Fholmes%2Frulemgt%2FRuleAppConfigTest.java;h=996f80eb3abbc13221233ef0ca9f412519631855;hb=a3cca480ef4e71cfbc9f70ccb7071c359d119225;hp=5724da2f0e38703bb243b56c91225f474f54f794;hpb=e06a9a3d99ce327336f9d79a3843791bcb342369;p=holmes%2Frule-management.git 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);