X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fmodelloader%2Fconfig%2FTestModelLoaderConfig.java;h=89f343cdcf4008ccd22ab0abb44be3a56ab2027b;hb=HEAD;hp=e19b1e2be5590d8450b1a3172fff955ef8b8c161;hpb=117237ac7b65395e0f29b6cead9f6ffec2e7dc0f;p=aai%2Fmodel-loader.git diff --git a/src/test/java/org/onap/aai/modelloader/config/TestModelLoaderConfig.java b/src/test/java/org/onap/aai/modelloader/config/TestModelLoaderConfig.java index e19b1e2..89f343c 100644 --- a/src/test/java/org/onap/aai/modelloader/config/TestModelLoaderConfig.java +++ b/src/test/java/org/onap/aai/modelloader/config/TestModelLoaderConfig.java @@ -20,17 +20,13 @@ */ package org.onap.aai.modelloader.config; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; +import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; import java.util.List; import java.util.Properties; import org.eclipse.jetty.util.security.Password; -import org.junit.Test; -import org.onap.aai.modelloader.restclient.AaiRestClient; +import org.junit.jupiter.api.Test; import org.onap.sdc.utils.ArtifactTypeEnum; /** @@ -149,23 +145,6 @@ public class TestModelLoaderConfig { assertEquals(url, config.getBabelGenerateArtifactsUrl()); } - @Test - public void testMissingAuthenticationProperties() throws IOException { - Properties props = new Properties(); - props.load(new FileInputStream("src/test/resources/model-loader-empty-auth-password.properties")); - - ModelLoaderConfig config = new ModelLoaderConfig(props, null); - AaiRestClient aaiClient = new AaiRestClient(config); - - assertFalse("Empty AAI Password should result in no basic authentication", aaiClient.useBasicAuth()); - - props.load(new FileInputStream("src/test/resources/model-loader-no-auth-password.properties")); - config = new ModelLoaderConfig(props, null); - aaiClient = new AaiRestClient(config); - - assertFalse("No AAI Password should result in no basic authentication", aaiClient.useBasicAuth()); - } - @Test public void testGetUrls() { Properties props = new Properties();