aboutsummaryrefslogtreecommitdiffstats
path: root/mdsal-resource
diff options
context:
space:
mode:
Diffstat (limited to 'mdsal-resource')
-rw-r--r--mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestConfigResource.java2
-rw-r--r--mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java2
-rw-r--r--mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestOperationalResource.java2
3 files changed, 6 insertions, 0 deletions
diff --git a/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestConfigResource.java b/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestConfigResource.java
index a8f4d948..80563b96 100644
--- a/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestConfigResource.java
+++ b/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestConfigResource.java
@@ -5,6 +5,7 @@ import junit.framework.TestCase;
import static org.mockito.Mockito.mock;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
+import static org.junit.Assert.assertNotNull;
public class TestConfigResource extends TestCase {
@@ -24,6 +25,7 @@ public class TestConfigResource extends TestCase {
res.isAvailable("my-resource", "mykey", "pfx", ctx);
res.save("resource", false, false, null, null, null, ctx);
res.update("my-resource", "mykey", null, "pfx", ctx);
+ assertNotNull(res);
}
}
diff --git a/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java b/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java
index 9af5b59b..7f05d1e5 100644
--- a/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java
+++ b/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java
@@ -27,6 +27,7 @@ import org.junit.Test;
import java.util.Properties;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
public class TestMdsalResourcePropertiesProviderImpl {
@@ -57,6 +58,7 @@ public class TestMdsalResourcePropertiesProviderImpl {
MdsalResourcePropertiesProviderImpl test = new MdsalResourcePropertiesProviderImpl();
mdsal.determinePropertiesFile(test);
+ assertNotNull(test);
}
}
diff --git a/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestOperationalResource.java b/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestOperationalResource.java
index f5725e97..2e9798df 100644
--- a/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestOperationalResource.java
+++ b/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestOperationalResource.java
@@ -5,6 +5,7 @@ import static org.mockito.Mockito.mock;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
import junit.framework.TestCase;
+import static org.junit.Assert.assertNotNull;
public class TestOperationalResource extends TestCase {
@@ -25,5 +26,6 @@ public class TestOperationalResource extends TestCase {
res.isAvailable("my-resource", "mykey", "pfx", ctx);
res.save("resource", false, false, null, null, null, ctx);
res.update("my-resource", "mykey", null, "pfx", ctx);
+ assertNotNull(restService);
}
}