diff options
Diffstat (limited to 'engine-d/src/test/java/org/openo')
-rw-r--r-- | engine-d/src/test/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapperTest.java | 2 | ||||
-rw-r--r-- | engine-d/src/test/java/org/openo/holmes/engine/wrapper/RuleMgtWrapperTest.java | 14 |
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;
|