diff options
Diffstat (limited to 'vnf-sdk-function-test/src/test/java/org/onap/vnfsdk/functest/common/TestConfig.java')
-rw-r--r-- | vnf-sdk-function-test/src/test/java/org/onap/vnfsdk/functest/common/TestConfig.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vnf-sdk-function-test/src/test/java/org/onap/vnfsdk/functest/common/TestConfig.java b/vnf-sdk-function-test/src/test/java/org/onap/vnfsdk/functest/common/TestConfig.java index 132fdf8..1732c74 100644 --- a/vnf-sdk-function-test/src/test/java/org/onap/vnfsdk/functest/common/TestConfig.java +++ b/vnf-sdk-function-test/src/test/java/org/onap/vnfsdk/functest/common/TestConfig.java @@ -21,7 +21,12 @@ import org.junit.Before; import org.junit.Test; import org.onap.vnfsdk.functest.VnfSdkFuncTestAppConfiguration; +import java.lang.reflect.Constructor; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Modifier; + import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; public class TestConfig { @@ -33,6 +38,14 @@ public class TestConfig { } @Test + public void testConstructorIsPrivate() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { + Constructor<Config> constructor = Config.class.getDeclaredConstructor(); + assertTrue(Modifier.isPrivate(constructor.getModifiers())); + constructor.setAccessible(true); + constructor.newInstance(); + } + + @Test public void testVnfSdkConfigBean() { vnfSdkBean.setTemplate(""); vnfSdkBean.setServiceIp("127.0.0.1"); |