Tue, 28 Jul 2020 14:05:04 +0200
DocumentHandlerTest tests if modified state is reset
src/test/java/de/uapcore/sudoku/DocumentHandlerTest.java | file | annotate | diff | comparison | revisions |
--- a/src/test/java/de/uapcore/sudoku/DocumentHandlerTest.java Tue Jul 28 13:48:59 2020 +0200 +++ b/src/test/java/de/uapcore/sudoku/DocumentHandlerTest.java Tue Jul 28 14:05:04 2020 +0200 @@ -64,6 +64,9 @@ final var dh = new DocumentHandler(); final var field = new Field(); + field.setAllCellsModified(true); + assertTrue(field.isAnyCellModified()); + final var testdata = createTestdata(); for (int x = 0 ; x < 9 ; x++) { for (int y = 0 ; y < 9 ; y++) { @@ -92,5 +95,7 @@ for (int i = 0 ; i < expected.length ; i++) { assertEquals(expected[i], actual.get(i)); } + + assertFalse(field.isAnyCellModified()); } }