aboutsummaryrefslogtreecommitdiffstats
path: root/asdctool/src/test
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-06-16 13:53:58 +0100
committerChristophe Closset <christophe.closset@intl.att.com>2021-06-21 10:45:05 +0000
commit8f2b611dcb3554717478017597c97746b8aba7f9 (patch)
tree0bb4791b51e83d55cab275f2857b81ff0ef663a1 /asdctool/src/test
parent3ee2a21e24676017ab86dda6969956cbc5d9785a (diff)
Fix CRITICAL xxe (XML External Entity) issues
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ic33527d54a5245430e41b5a4261810922f7b4fb1 Issue-ID: SDC-3608
Diffstat (limited to 'asdctool/src/test')
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java
index c2a8a561d8..a3cb9ddfad 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/GraphMLDataAnalyzerTest.java
@@ -20,37 +20,37 @@
package org.openecomp.sdc.asdctool.impl;
-import org.junit.Test;
-
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.openecomp.sdc.asdctool.impl.GraphMLDataAnalyzer.EXCEL_EXTENSION;
import static org.openecomp.sdc.asdctool.impl.GraphMLDataAnalyzer.GRAPH_ML_EXTENSION;
-public class GraphMLDataAnalyzerTest {
+import org.junit.jupiter.api.Test;
+
+class GraphMLDataAnalyzerTest {
- public static final String FILE_NAME = "export";
+ private static final String FILE_NAME = "export";
@Test
- public void testAnalyzeGraphMLDataNoFile() {
- String[] args = new String[]{"noExistFile"};
+ void testAnalyzeGraphMLDataNoFile() {
+ final String[] args = new String[]{"noExistFile"};
// default test
- GraphMLDataAnalyzer graph = new GraphMLDataAnalyzer();
- String result = graph.analyzeGraphMLData(args);
+ final GraphMLDataAnalyzer graph = new GraphMLDataAnalyzer();
+ final String result = graph.analyzeGraphMLData(args);
assertNull(result);
}
@Test
- public void testAnalyzeGraphMLData() {
- String path = getClass().getClassLoader().getResource(FILE_NAME + GRAPH_ML_EXTENSION).getPath();
- String[] args = new String[]{path};
+ void testAnalyzeGraphMLData() {
+ final String path = getClass().getClassLoader().getResource(FILE_NAME + GRAPH_ML_EXTENSION).getPath();
+ final String[] args = new String[]{path};
// default test
- GraphMLDataAnalyzer graph = new GraphMLDataAnalyzer();
- String result = graph.analyzeGraphMLData(args);
+ final GraphMLDataAnalyzer graph = new GraphMLDataAnalyzer();
+ final String result = graph.analyzeGraphMLData(args);
assertNotNull(result);
assertTrue(result.endsWith(EXCEL_EXTENSION));