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

declare throws Exception in test method for StringData, to avoid compilation errors

parent b8b0649b
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ import static org.junit.jupiter.api.Assertions.*;
class StringDataTest {
@Test
void read() { // throws DataMismatchException {
void read() throws Exception {
Data<String> ds = new StringData();
// assertThrows(MismatchDataException.class,() -> ds.read("abc"));
// assertThrows(MismatchDataException.class,() -> ds.read("\"abc"));
......@@ -27,7 +27,7 @@ class StringDataTest {
}
@Test
void format() { // } throws DataMismatchException {
void format() throws Exception {
List<String> words = List.of(
"", "abc", "\"abc\"",
"ab\"cd", "a\r\n\tb","\"a\\\"\"",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment