Raise JUnit coverage asdctool
[sdc.git] / asdctool / src / test / java / org / openecomp / sdc / asdctool / impl / validator / tasks / artifacts / ServiceArtifactValidationTaskTest.java
index ef0b23b..15c2b07 100644 (file)
@@ -1,11 +1,23 @@
 package org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts;
 
+import org.junit.Test;
+import org.openecomp.sdc.be.dao.jsongraph.GraphVertex;
+
 public class ServiceArtifactValidationTaskTest {
 
        private ServiceArtifactValidationTask createTestSubject() {
                return new ServiceArtifactValidationTask();
        }
 
-       
+       @Test(expected=NullPointerException.class)
+       public void testValidate() throws Exception {
+               ServiceArtifactValidationTask testSubject;
+               GraphVertex vertex = null;
+               ArtifactsVertexResult result;
+
+               // default test
+               testSubject = createTestSubject();
+               result = testSubject.validate(vertex);
+       }
 
 }
\ No newline at end of file