Skip to content
Snippets Groups Projects
Commit 28ad291d authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- fixed testcase

parent 0b8ed5d9
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ import java.util.HashMap;
import java.util.Map;
import java.util.stream.Stream;
import static org.junit.Assert.*;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
/**
* Tests for {@link SLUBXmlFormatValidationPlugin}.
......@@ -29,7 +30,7 @@ public class TestSLUBXmlFormatValidationPlugin {
public void setUp() {
Stream<Path> findFiles;
try {
findFiles = Files.find(Path.of("resources/test/mods"), 5, ((path, basicFileAttributes) -> Files.isRegularFile(path)));
findFiles = Files.find(Path.of("resources/test/"), 5, ((path, basicFileAttributes) -> Files.isRegularFile(path)));
testPaths = findFiles.toArray(Path[]::new);
} catch (IOException e) {
// do nothing, because nothing found
......@@ -50,7 +51,7 @@ public class TestSLUBXmlFormatValidationPlugin {
assertTrue ("validateFormat (pass), check if "+path+" exist", Files.exists(path));
assertTrue ("validateFormat(" + path + "), returns valid?", mock.validateFormat(path.toString()));
assertTrue ( "validateFormat(" + path + "), is wellformed?", mock.isWellFormed());
assertNull ( "validateFormat(" + path + "), reports no errors?", mock.getErrors());
assertTrue ( "validateFormat(" + path + "), reports no errors?", mock.getErrors().isEmpty());
assertNotNull("getValidationDetails(), " + path + ", not null", mock.getValidationDetails());
assertTrue ("validateFormat(" + path + "), is valid?", mock.isValid());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment