From 132e46d94f51428856154efbac09f34d561faf83 Mon Sep 17 00:00:00 2001 From: FengLiang Date: Wed, 1 Mar 2017 09:37:38 +0800 Subject: Delete attribute Change-Id: I161d1966347fad654d1ea4f418d4d7cb7f69dbb3 Issue-ID:HOLMES-47 Signed-off-by: FengLiang --- .../holmes/engine/db/mapper/CorrelationRuleMapperTest.java | 2 -- .../openo/holmes/engine/wrapper/RuleMgtWrapperTest.java | 14 -------------- 2 files changed, 16 deletions(-) (limited to 'engine-d/src/test') diff --git a/engine-d/src/test/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapperTest.java b/engine-d/src/test/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapperTest.java index e5eccf8..6e43f86 100644 --- a/engine-d/src/test/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapperTest.java +++ b/engine-d/src/test/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapperTest.java @@ -44,9 +44,7 @@ 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.getInt("isManual")).andReturn(0); expect(resultSet.getString("vendor")).andReturn(""); expect(resultSet.getString("package")).andReturn(""); diff --git a/engine-d/src/test/java/org/openo/holmes/engine/wrapper/RuleMgtWrapperTest.java b/engine-d/src/test/java/org/openo/holmes/engine/wrapper/RuleMgtWrapperTest.java index 593b1ce..fab68df 100644 --- a/engine-d/src/test/java/org/openo/holmes/engine/wrapper/RuleMgtWrapperTest.java +++ b/engine-d/src/test/java/org/openo/holmes/engine/wrapper/RuleMgtWrapperTest.java @@ -48,20 +48,6 @@ public class RuleMgtWrapperTest { PowerMock.resetAll(); } - @Test - public void queryRuleByEnable_ruletemp_is_null() throws CorrelationException { - int enable = 3; - - thrown.expect(CorrelationException.class); - - CorrelationRuleDao correlationRuleDao = PowerMock.createMock(CorrelationRuleDao.class); - expect(daoUtil.getJdbiDaoByOnDemand(anyObject(Class.class))).andReturn(correlationRuleDao); - expect(correlationRuleDao.queryRuleByRuleEnable(anyInt())).andReturn(null); - PowerMock.replayAll(); - ruleMgtWrapper.queryRuleByEnable(enable); - PowerMock.verifyAll(); - } - @Test public void queryRuleByEnable_normal() throws CorrelationException { int enable = 3; -- cgit 1.2.3-korg