Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinayagarwal committed Mar 6, 2024
1 parent c62b08b commit 2fda68a
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -139,4 +139,14 @@ public void testClearChecksCallsListenerOnce() {
model.clearChecks();
assertEquals(1, count.get());
}

@Test
// needs junit 5
// @RepeatedTest(value = 10, failureThreshold = 2)
public void testSingleCheckAddsItToIndicesList() {
ObservableList<Integer> checkedIndicesList = model.getCheckedIndices();
assertTrue(checkedIndicesList.isEmpty());
model.check(ROW_3_VALUE);
assertFalse(checkedIndicesList.isEmpty());
}
}

0 comments on commit 2fda68a

Please sign in to comment.