Skip to content

Commit

Permalink
official NISO STS XML sample conversion added to JUnit test, #407
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Mar 4, 2024
1 parent 6b077da commit 7dd49ce
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/test/java/org/metanorma/sts2mnTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,19 @@ public void successConvertToXML() throws ParseException {

assertTrue(Files.exists(fileout));
}


@Test
public void successConvertRemoteToXML() throws ParseException {
System.out.println(name.getMethodName());
Path fileout = Paths.get(System.getProperty("buildDirectory"), "NISO-STS-Standard-1-0.mn.xml");
fileout.toFile().delete();
String remoteXML = "https://www.niso-sts.org/downloadables/samples/NISO-STS-Standard-1-0.XML";
fileout.toFile().delete();
String[] args = new String[]{"--output-format", "xml", "--output", fileout.toAbsolutePath().toString(), remoteXML};
mnconvert.main(args);
assertTrue(Files.exists(fileout));
}

@Test
public void successConvertToADOCWithImageLink() throws ParseException {
assumeNotNull(XMLFILE_MN);
Expand Down

0 comments on commit 7dd49ce

Please sign in to comment.