Commit e00a4ec9 authored by descamps's avatar descamps
Browse files

Correction Test import pua pastis validator

parent bc8625bc
......@@ -69,7 +69,7 @@ public class PuaPastisValidatorNOKTest {
@Test(expected = AssertionError.class)
public void testImports() {
puaPastisValidatorTest.testImport(fileName);
puaPastisValidatorTest.testImport(fileName, true);
}
......
......@@ -69,7 +69,7 @@ public class PuaPastisValidatorOKTest {
@Test
public void testImports() {
puaPastisValidatorTest.testImport(fileName);
puaPastisValidatorTest.testImport(fileName, true);
}
......
......@@ -48,10 +48,10 @@ public class PuaPastisValidatorTest {
PuaPastisValidator puaPastisValidator = new PuaPastisValidator();
public void testImport(String pathFile) {
public void testImport(String pathFile, boolean environnementStandalone) {
InputStream inputStreamPua = getClass().getClassLoader().getResourceAsStream(pathFile);
JSONTokener tokener = new JSONTokener(new InputStreamReader(inputStreamPua));
JSONObject profileJson = new JSONObject(tokener);
puaPastisValidator.validatePUA(profileJson, false);
puaPastisValidator.validatePUA(profileJson, environnementStandalone);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment