Commit 54e2f969 authored by Stein Eldar Johnsen's avatar Stein Eldar Johnsen 💬

Fix Strings to be locale independent.

And add new camelCase method (no prefix).
Use proper patterns for splitting the name source in camelCase function.
parent 11f7191d
......@@ -17,6 +17,7 @@ import static net.morimekta.testing.ResourceUtils.getResourceAsByteBuffer;
import static net.morimekta.testing.ResourceUtils.getResourceAsString;
import static net.morimekta.util.io.IOUtils.readString;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.startsWith;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
......@@ -87,8 +88,7 @@ public class ResourceUtilsTest {
ResourceUtils.writeContentTo("/net/morimekta/testing/test2.txt", file);
fail("No exception on unable to write to file.");
} catch (UncheckedIOException e) {
assertEquals("java.io.FileNotFoundException: " + file.getAbsolutePath() + " (No such file or directory)",
e.getMessage());
assertThat(e.getMessage(), startsWith("java.io.FileNotFoundException: " + file.getAbsolutePath()));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment