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

- explicite type used

parent 4c24ee4e
Branches
Tags
No related merge requests found
......@@ -4,6 +4,7 @@ import org.junit.Before;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.slub.rosetta.dps.repository.plugin.SLUBXmlFormatValidationPlugin;
import org.w3c.dom.Document;
import java.io.File;
import java.net.URI;
......@@ -52,7 +53,7 @@ public class TestSLUBValidateRelaxNG {
var has_exception = false;
var res = false;
try {
var doc = mock.getDocument("resources/test/valid/my_relaxng_test.valid.xml");
Document doc = mock.getDocument("resources/test/valid/my_relaxng_test.valid.xml");
res = v.validateAgainst(doc, local2Uri("example_catalog/my_relaxng_test.rng"));
} catch ( Exception e) {
e.printStackTrace();
......@@ -68,7 +69,7 @@ public class TestSLUBValidateRelaxNG {
var has_exception = false;
var res = false;
try {
var doc = mock.getDocument("resources/test/invalid/my_relaxng_test.invalid.xml");
Document doc = mock.getDocument("resources/test/invalid/my_relaxng_test.invalid.xml");
res = v.validateAgainst(doc, new URI("example_catalog/my_relaxng_test.rng"));
} catch ( Exception e) {
System.out.println( "EXCEPTION:" + e.getMessage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment