Better regex testing in TestMaterialWrite

cleanup_build_scripts
Nehon 9 years ago
parent 5e6d2e8ca3
commit bcea9bfe51
  1. 2
      jme3-plugins/src/test/java/com/jme3/material/plugin/TestMaterialWrite.java

@ -73,7 +73,7 @@ public class TestMaterialWrite {
// System.err.println(reference); // System.err.println(reference);
// System.err.println(stream.toString()); // System.err.println(stream.toString());
assertEquals(reference.replaceAll("\\s",""), stream.toString().replaceAll("\\s","")); assertEquals(reference.replaceAll("[\\s|\\r\\n]",""), stream.toString().replaceAll("[\\s|\\r\\n]",""));
} }
private String convertStreamToString(java.io.InputStream is) { private String convertStreamToString(java.io.InputStream is) {

Loading…
Cancel
Save