From 7cbac177f8d733c8a2103b966f51a3afe4c2123c Mon Sep 17 00:00:00 2001 From: youbowu Date: Wed, 1 Mar 2017 14:46:23 +0800 Subject: Fix db in rule management problems Issue-ID:HOLMES-50 Change-Id: Iea2cf3b49dd2019fccc7c0014c0c5a5597d7a9c7 Signed-off-by: youbowu --- .../org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapperTest.java | 2 +- .../org/openo/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'rulemgt/src/test/java') diff --git a/rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapperTest.java b/rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapperTest.java index 24839e8..f672415 100644 --- a/rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapperTest.java +++ b/rulemgt/src/test/java/org/openo/holmes/rulemgt/bolt/enginebolt/EngineWrapperTest.java @@ -167,7 +167,7 @@ public class EngineWrapperTest { @Test public void checkRuleFromEngine_invoke_rule_delete_exception() throws Exception { thrown.expect(CorrelationException.class); - thrown.expectMessage(I18nProxy.RULE_MANAGEMENT__CALL_CHECK_RULE_REST_FAILED); + thrown.expectMessage(I18nProxy.RULE_MANAGEMENT_CALL_CHECK_RULE_REST_FAILED); EasyMock.expect(engineServiceMock.check(EasyMock.anyObject(CorrelationCheckRule4Engine.class))).andThrow( new RuntimeException("")); diff --git a/rulemgt/src/test/java/org/openo/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java b/rulemgt/src/test/java/org/openo/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java index 2a6b5f4..65a53dd 100644 --- a/rulemgt/src/test/java/org/openo/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java +++ b/rulemgt/src/test/java/org/openo/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java @@ -42,7 +42,6 @@ public class CorrelationRuleMapperTest { expect(resultSet.getString("updator")).andReturn(""); expect(resultSet.getDate("updateTime")).andReturn(new Date(System.currentTimeMillis())); expect(resultSet.getObject("params")).andReturn(new Properties()); - expect(resultSet.getString("domain")).andReturn(""); expect(resultSet.getString("content")).andReturn(""); expect(resultSet.getString("vendor")).andReturn(""); expect(resultSet.getString("package")).andReturn(""); -- cgit 1.2.3-korg