summaryrefslogtreecommitdiffstats
path: root/engine-d/src/test/java/org
diff options
context:
space:
mode:
authorFengLiang <feng.liang1@zte.com.cn>2017-03-01 09:37:38 +0800
committerFengLiang <feng.liang1@zte.com.cn>2017-03-01 09:37:38 +0800
commit132e46d94f51428856154efbac09f34d561faf83 (patch)
treeb9157be4efed17575730502c4fcad1f645e731f9 /engine-d/src/test/java/org
parentaffe52530aecd15cb0ae1efb70df840651d968ff (diff)
Delete attribute
Change-Id: I161d1966347fad654d1ea4f418d4d7cb7f69dbb3 Issue-ID:HOLMES-47 Signed-off-by: FengLiang <feng.liang1@zte.com.cn>
Diffstat (limited to 'engine-d/src/test/java/org')
-rw-r--r--engine-d/src/test/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapperTest.java2
-rw-r--r--engine-d/src/test/java/org/openo/holmes/engine/wrapper/RuleMgtWrapperTest.java14
2 files changed, 0 insertions, 16 deletions
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
@@ -49,20 +49,6 @@ public class RuleMgtWrapperTest {
}
@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;