Unit test code for datalake seed code 55/85455/1
authorRama-Huawei <rama.subba.reddy.s@huawei.com>
Tue, 16 Apr 2019 12:15:45 +0000 (17:45 +0530)
committerRama-Huawei <rama.subba.reddy.s@huawei.com>
Tue, 16 Apr 2019 12:17:49 +0000 (17:47 +0530)
Improved Application code coverage

Issue-ID: DCAEGEN2-1309

Change-Id: Iad599877616ea3b633765cf5119a97ef86912a97
Signed-off-by: Rama-Huawei <rama.subba.reddy.s@huawei.com>
components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/ApplicationTest.java [new file with mode: 0644]

diff --git a/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/ApplicationTest.java b/components/datalake-handler/feeder/src/test/java/org/onap/datalake/feeder/ApplicationTest.java
new file mode 100644 (file)
index 0000000..7513249
--- /dev/null
@@ -0,0 +1,33 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * org.onap.holmes.common.aai
+ * ================================================================================
+ * Copyright (C) 2018-2019 Huawei. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.datalake.feeder;
+
+import org.junit.Test;
+import org.onap.datalake.feeder.service.PullService;
+
+public class ApplicationTest {
+    @Test
+    //only dot(.) in key got replaced
+    public void replaceDotInKey() {
+        Application application = new Application();
+        application.commandLineRunner(new PullService());
+    }
+}