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 "));
\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
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