Skip to content

Commit 638d334

Browse files
author
anquetil
committed
added test for MSEPrinter
1 parent 798ea6a commit 638d334

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/src/test/java/ch/akuhn/fame/test/JSONPrinterTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public void testExportJSON() {
2424
System.out.println(stream);
2525
}
2626

27+
private static String removeWhiteSpaces(String input) {
28+
return input.replaceAll("\\s+", "");
29+
}
30+
2731
@Override
2832
public void setUp() throws Exception {
2933
super.setUp();
@@ -71,11 +75,6 @@ public void testBeginElement() {
7175
assertEquals("{\"FM3\":\"Java.Class\"", removeWhiteSpaces(stream.toString()));
7276
}
7377

74-
75-
private static String removeWhiteSpaces(String input) {
76-
return input.replaceAll("\\s+", "");
77-
}
78-
7978
public void testEmptyEntityPrettyPrinter() {
8079
String str = "((FM3.Package))";
8180
Tower t = new Tower();

0 commit comments

Comments
 (0)