Change the Data Type of Some Fields 37/10537/2
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Wed, 6 Sep 2017 09:47:11 +0000 (17:47 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Wed, 6 Sep 2017 10:39:39 +0000 (18:39 +0800)
Change-Id: I7e08805477983ad7956a5ee2f7e79cb6f80bd365
Issue-ID: HOLMES-39
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
holmes-actions/src/main/java/org/onap/holmes/common/api/entity/CorrelationRule.java
holmes-actions/src/test/java/org/onap/holmes/common/api/entity/CorrelationRuleTest.java

index 6b91bd3..c8d61b9 100644 (file)
@@ -34,7 +34,7 @@ public class CorrelationRule {
     @JsonProperty\r
     private int enabled;\r
     @JsonProperty\r
-    private int templateID;\r
+    private long templateID;\r
     private String engineID;\r
     @JsonProperty\r
     private String engineType;\r
index 25ee5c6..e00f961 100644 (file)
@@ -69,7 +69,7 @@ public class CorrelationRuleTest {
 
     @Test
     public void getterAndSetter4TemplateID() throws Exception {
-        final int templateId = 1;
+        final long templateId = 1L;
         correlationRule.setTemplateID(templateId);
         assertThat(correlationRule.getTemplateID(), equalTo(templateId));
     }