Solve the Autorelease Error
[holmes/rule-management.git] / rulemgt / src / test / java / org / openo / holmes / rulemgt / RuleActiveAppTest.java
index 69910c6..0c2f3c1 100644 (file)
 
 package org.openo.holmes.rulemgt;
 
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.core.IsEqual.equalTo;
+
 public class RuleActiveAppTest {
 
+    public void getName() throws Exception {
+        RuleActiveApp app = new RuleActiveApp();
+        assertThat(app.getName(), equalTo("Holmes Rule Management ActiveApp APP "));
+    }
+
     public static void main(String[] args) throws Exception {
         String filePath = "E:\\code\\OES_Analytics_FM_Relation\\correlation-mgt\\rulemgt-standalone\\src\\assembly\\resource\\conf\\correlation-rule.yml";
         new RuleActiveApp().run(new String[]{"server", filePath});