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

IntDataSet.testReadInvalidInteger should be commented initially

parent c3e3703c
No related branches found
No related tags found
No related merge requests found
...@@ -16,27 +16,28 @@ class IntDataTest { ...@@ -16,27 +16,28 @@ class IntDataTest {
assertEquals(-15, intData.read("-15")); assertEquals(-15, intData.read("-15"));
} }
@Test // TODO décommenter le test
void testReadInvalidInteger() { // @Test
try { // void testReadInvalidInteger() {
intData.read("abc"); // try {
} catch (Exception e) { // intData.read("abc");
assertEquals("Mismatch when reading a string, expecting integer but got abc",e.toString()); // } catch (Exception e) {
} // assertEquals("Mismatch when reading a string, expecting integer but got abc",e.toString());
try { // }
intData.read("42.0"); // try {
} catch (Exception e) { // intData.read("42.0");
assertEquals("Mismatch when reading a string, expecting integer but got 42.0",e.toString()); // } catch (Exception e) {
} // assertEquals("Mismatch when reading a string, expecting integer but got 42.0",e.toString());
try { // }
intData.read(""); // try {
} catch (Exception e) { // intData.read("");
assertEquals( // } catch (Exception e) {
"Mismatch when reading a string, expecting integer but got <nothing>", // assertEquals(
e.toString() // "Mismatch when reading a string, expecting integer but got <nothing>",
); // e.toString()
} // );
} // }
// }
// TODO décommenter le test // TODO décommenter le test
// @Test // @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment