Skip to content

Commit

Permalink
Merge pull request schxslt#164 from pigelvy/patch-1
Browse files Browse the repository at this point in the history
Unit tests for XSLT 2.0
  • Loading branch information
dmj authored Feb 17, 2023
2 parents 07a5402 + d503655 commit 347781b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/name/dmaus/schxslt/SchematronTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ public void extParamForXSLT10 () throws Exception
@Test
public void extParamForXSLT20 () throws Exception
{
Schematron schematron = new Schematron(getResourceAsStream(simpleSchema10), "external-param");
Schematron schematron = new Schematron(getResourceAsStream(simpleSchema20), "external-param");

HashMap<String,Object> map = new HashMap<String,Object>();
map.put("external-param", new Integer(1));

Result result = schematron.validate(getResourceAsStream(simpleSchema10), map);
Result result = schematron.validate(getResourceAsStream(simpleSchema20), map);
assertTrue(result.isValid());
}

Expand All @@ -92,7 +92,7 @@ public void extParamForXSLT20 () throws Exception
public void newSchematronForXSLT20 () throws Exception
{
Schematron schematron = new Schematron(getResourceAsStream(simpleSchema20), "always-valid");
Result result = schematron.validate(getResourceAsStream(simpleSchema10));
Result result = schematron.validate(getResourceAsStream(simpleSchema20));
assertTrue(result.isValid());
}

Expand Down

0 comments on commit 347781b

Please sign in to comment.