aboutsummaryrefslogtreecommitdiffstats
path: root/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/test/JavaPropertiesConfigTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/test/JavaPropertiesConfigTest.java')
-rw-r--r--common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/test/JavaPropertiesConfigTest.java21
1 files changed, 9 insertions, 12 deletions
diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/test/JavaPropertiesConfigTest.java b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/test/JavaPropertiesConfigTest.java
index 0c82fe4219..5055f37b83 100644
--- a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/test/JavaPropertiesConfigTest.java
+++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/test/JavaPropertiesConfigTest.java
@@ -17,12 +17,10 @@
package org.onap.config.test;
import static org.onap.config.util.TestUtil.validateConfiguration;
-import static org.onap.config.util.TestUtil.writeFile;
-import java.io.IOException;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.onap.config.util.TestUtil;
/**
@@ -30,23 +28,22 @@ import org.onap.config.util.TestUtil;
* Scenario 1
* Validate configuration with Java Properties file format with mode
*/
-public class JavaPropertiesConfigTest {
+class JavaPropertiesConfigTest {
private static final String NAMESPACE = "javaProperties";
- @Before
- public void setUp() throws IOException {
- String data = "{name:\"SCM\"}";
- writeFile(data);
+ @BeforeEach
+ public void setUp() throws Exception {
+ TestUtil.cleanUp();
}
@Test
- public void testConfigurationWithPropertiesFileFormat() {
+ void testConfigurationWithPropertiesFileFormat() {
validateConfiguration(NAMESPACE);
}
- @After
+ @AfterEach
public void tearDown() throws Exception {
TestUtil.cleanUp();
}