aboutsummaryrefslogtreecommitdiffstats
path: root/asdctool/src/test/java
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2017-10-19 23:39:36 +0300
committerYuli Shlosberg <ys9693@att.com>2017-10-22 13:30:52 +0000
commit968d54ca133fa53a3617fae6ff30e3ff06f1805e (patch)
tree3292470dc241433e8fce86027d132f34f8223180 /asdctool/src/test/java
parentc7026576d55cce40fb9928616ab63f5a73663238 (diff)
add more unit tests remove imports
Change-Id: If2274759f929f595e63d71cc70c374268c019947 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit b947eb599bfab4599ce1b0c0573b1701c646e429)
Diffstat (limited to 'asdctool/src/test/java')
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/AppTest.java54
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java24
2 files changed, 24 insertions, 54 deletions
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/AppTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/AppTest.java
deleted file mode 100644
index ae23b73d7d..0000000000
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/AppTest.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. 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.openecomp.sdc.asdctool;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest extends TestCase {
- /**
- * Create the test case
- *
- * @param testName
- * name of the test case
- */
- public AppTest(String testName) {
- super(testName);
- }
-
- /**
- * @return the suite of tests being tested
- */
- public static Test suite() {
- return new TestSuite(AppTest.class);
- }
-
- /**
- * Rigourous Test :-)
- */
- public void testApp() {
- assertTrue(true);
- }
-}
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java
new file mode 100644
index 0000000000..c3f7874c12
--- /dev/null
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/servlets/EntryPointTest.java
@@ -0,0 +1,24 @@
+package org.openecomp.sdc.asdctool.servlets;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+
+public class EntryPointTest {
+
+ private EntryPoint createTestSubject() {
+ return new EntryPoint();
+ }
+
+
+ @Test
+ public void testTest() throws Exception {
+ EntryPoint testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.test();
+ }
+} \ No newline at end of file