Skip to content
Snippets Groups Projects
Commit c3e3703c authored by Guyslain's avatar Guyslain
Browse files

MismatchDataException -> DataMismatchException in the test for StringData

parent 8aacdadf
No related branches found
No related tags found
No related merge requests found
...@@ -11,12 +11,12 @@ class StringDataTest { ...@@ -11,12 +11,12 @@ class StringDataTest {
@Test @Test
void read() throws Exception { void read() throws Exception {
Data<String> ds = new StringData(); Data<String> ds = new StringData();
// assertThrows(MismatchDataException.class,() -> ds.read("abc")); // assertThrows(DataMismatchException.class,() -> ds.read("abc"));
// assertThrows(MismatchDataException.class,() -> ds.read("\"abc")); // assertThrows(DataMismatchException.class,() -> ds.read("\"abc"));
// assertThrows(MismatchDataException.class,() -> ds.read("abc\"")); // assertThrows(DataMismatchException.class,() -> ds.read("abc\""));
// assertThrows(MismatchDataException.class,() -> ds.read("a\"bc\"")); // assertThrows(DataMismatchException.class,() -> ds.read("a\"bc\""));
// assertThrows(MismatchDataException.class,() -> ds.read("\"ab\"c")); // assertThrows(DataMismatchException.class,() -> ds.read("\"ab\"c"));
// assertThrows(MismatchDataException.class,() -> ds.read("\"a\\\"b\"\\c\"")); // assertThrows(DataMismatchException.class,() -> ds.read("\"a\\\"b\"\\c\""));
// assertEquals("",ds.read("\"\"")); // assertEquals("",ds.read("\"\""));
assertEquals("abc",ds.read("\"abc\"")); assertEquals("abc",ds.read("\"abc\""));
assertEquals("a\\bc",ds.read("\"a\\\\bc\"")); assertEquals("a\\bc",ds.read("\"a\\\\bc\""));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment