diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2017-02-27 14:13:18 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2017-02-27 14:13:18 +0800 |
commit | 6da3c1a2f47550a023da4ee4ea0238683c4aa262 (patch) | |
tree | 68312bc0622b1ed33478cd7edc4acd0e0d1ecf1d | |
parent | e87f8243439fb68d1308a5132ae624942d77776d (diff) |
Do some Optimizations on the UT Class
Add a new test case.
Change-Id: I9ad86ab475e32f1d11e22dad8f54f9433fe9bba2
Issue-ID: HOLMES-47
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r-- | rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
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 0c2f3c1..4f35b94 100644 --- a/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java +++ b/rulemgt/src/test/java/org/openo/holmes/rulemgt/RuleActiveAppTest.java @@ -19,15 +19,18 @@ 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 ")); } 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"; + String filePath = "C:\\correlation-rule.yml"; new RuleActiveApp().run(new String[]{"server", filePath}); } }
\ No newline at end of file |