Skip to content

Commit

Permalink
[orchestra2md] invalid handling of more than one appinfo #66
Browse files Browse the repository at this point in the history
  • Loading branch information
donmendelson committed May 3, 2022
1 parent 03603c6 commit 6b30705
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@ public static void setupOnce() {

private final Logger logger = LogManager.getLogger(getClass());


@Test
void firstNoReference() throws Exception {
final String inputPath = getResourcePath("FIRST.md");
final String outputFilename = "target/test/FIRST-noref.xml";
Md2Orchestra md2Orchestra1 = Md2Orchestra.builder().inputFilePattern(inputPath)
.outputFile(outputFilename).eventFile("target/test/FIRST-noref.json").build();
md2Orchestra1.generate();
}

@Test
void firstWithReference() throws Exception {
final String inputPath = getResourcePath("FIRST.md");
final String outputFilename = "target/test/FIRST-ref.xml";
String referencePath = getResourcePath("OrchestraFIXLatest.xml");
Md2Orchestra md2Orchestra1 = Md2Orchestra.builder().inputFilePattern(inputPath).referenceFile(referencePath)
.outputFile(outputFilename).eventFile("target/test/FIRST-ref.json").build();
md2Orchestra1.generate();
}

@Test
void noInput() throws Exception {
final String outputFilename = "target/test/mit_2016.xml";
Expand Down

0 comments on commit 6b30705

Please sign in to comment.