Extract the Common Tool
[holmes/rule-management.git] / rulemgt / src / test / java / org / onap / holmes / rulemgt / db / mapper / CorrelationRuleMapperTest.java
diff --git a/rulemgt/src/test/java/org/onap/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java b/rulemgt/src/test/java/org/onap/holmes/rulemgt/db/mapper/CorrelationRuleMapperTest.java
deleted file mode 100644 (file)
index 3939994..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/**\r
- * Copyright 2017 ZTE Corporation.\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- *      http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-package org.onap.holmes.rulemgt.db.mapper;\r
-\r
-import static org.easymock.EasyMock.expect;\r
-\r
-import java.sql.Date;\r
-import java.sql.ResultSet;\r
-import java.util.Properties;\r
-import org.junit.Test;\r
-import org.powermock.api.easymock.PowerMock;\r
-\r
-public class CorrelationRuleMapperTest {\r
-\r
-    @Test\r
-    public void map() throws Exception {\r
-        CorrelationRuleMapper mapper = new CorrelationRuleMapper();\r
-        ResultSet resultSet = PowerMock.createMock(ResultSet.class);\r
-        expect(resultSet.getString("name")).andReturn("");\r
-        expect(resultSet.getString("rid")).andReturn("");\r
-        expect(resultSet.getString("description")).andReturn("");\r
-        expect(resultSet.getInt("enable")).andReturn(0);\r
-        expect(resultSet.getInt("templateID")).andReturn(1);\r
-        expect(resultSet.getString("engineID")).andReturn("");\r
-        expect(resultSet.getString("engineType")).andReturn("");\r
-        expect(resultSet.getString("creator")).andReturn("");\r
-        expect(resultSet.getDate("createTime")).andReturn(new Date(System.currentTimeMillis()));\r
-        expect(resultSet.getString("updator")).andReturn("");\r
-        expect(resultSet.getDate("updateTime")).andReturn(new Date(System.currentTimeMillis()));\r
-        expect(resultSet.getObject("params")).andReturn(new Properties());\r
-        expect(resultSet.getString("content")).andReturn("");\r
-        expect(resultSet.getString("vendor")).andReturn("");\r
-        expect(resultSet.getString("package")).andReturn("");\r
-        expect(resultSet.getString("ctrlloop")).andReturn("");\r
-        PowerMock.replay(resultSet);\r
-        mapper.map(0, resultSet, null);\r
-        PowerMock.verify(resultSet);\r
-    }\r
-}
\ No newline at end of file