Skip to content

Commit

Permalink
fix(test): remove unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
EDGA6280 committed May 31, 2023
1 parent 4f64256 commit 7becbeb
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/test/java/nl/jworks/markdown_to_asciidoc/TestSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ public void test() {
assertEquals(readToString("testsuite.adoc"), asciiDoc);
}


@Test
public void readme() throws IOException {
String markDown = readToString("Readme.md");
String asciiDoc = Converter.markdownToAsciiDoc(markDown);


toFile(asciiDoc, new File("target/readme.adoc"));
//assertEquals(readToString("testsuite.adoc"), asciiDoc);
}

private String readToString(String resourceName) {
URL url = getClass().getResource("/" + resourceName);
try {
Expand All @@ -46,22 +35,4 @@ private String readToString(String resourceName) {
return null;
}
}

public void toFile(String buffer, File file) throws IOException {

OutputStreamWriter bwr = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8);

toFile(buffer, bwr);
}

private void toFile(String buffer, OutputStreamWriter bwr) throws IOException {
//write contents of StringBuffer to a file
bwr.write(buffer);

//flush the stream
bwr.flush();

//close the stream
bwr.close();
}
}

0 comments on commit 7becbeb

Please sign in to comment.