summaryrefslogtreecommitdiffstats
path: root/saltstack-adapter/saltstack-adapter-provider
diff options
context:
space:
mode:
Diffstat (limited to 'saltstack-adapter/saltstack-adapter-provider')
-rw-r--r--saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java13
-rw-r--r--saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java2
2 files changed, 15 insertions, 0 deletions
diff --git a/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java b/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java
index b03b0f785..88acc1919 100644
--- a/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java
+++ b/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java
@@ -34,6 +34,7 @@ import org.onap.ccsdk.sli.core.sli.SvcLogicException;
import java.util.Properties;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
public class TestSaltstackAdapterPropertiesProviderImpl {
@@ -65,6 +66,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test(expected = SvcLogicException.class)
@@ -101,6 +103,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(adapter);
}
@Test
@@ -116,6 +119,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test(expected = SvcLogicException.class)
@@ -152,6 +156,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test
@@ -167,6 +172,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test
@@ -185,6 +191,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test
@@ -200,6 +207,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test
@@ -218,6 +226,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test
@@ -236,6 +245,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@@ -251,6 +261,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test
@@ -268,6 +279,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
}
};
adapter = new SaltstackAdapterImpl(propProvider);
+ assertNotNull(propProvider);
}
@Test
@@ -293,5 +305,6 @@ public class TestSaltstackAdapterPropertiesProviderImpl {
public void reqExecCommand_setPropertiesDefault() throws SvcLogicException,
IllegalStateException, IllegalArgumentException {
adapter = new SaltstackAdapterImpl();
+ assertNotNull(adapter);
}
}
diff --git a/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java b/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java
index 71798fbc8..d4eafc1a0 100644
--- a/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java
+++ b/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java
@@ -35,6 +35,7 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
+import static org.junit.Assert.assertNotNull;
public class TestJsonParser {
@@ -55,6 +56,7 @@ public class TestJsonParser {
logProperties(mm);
in.close();
+ assertNotNull(mm);
}
@Test(expected = NullPointerException.class)