コード例 #1
0
 /**
  * Optimized contains (same as core in selectedIndicesSeq), need to test if still working.
  *
  * <p>https://javafx-jira.kenai.com/browse/RT-39776
  */
 @Test
 public void testContains() {
   int[] indices = new int[] {3, 5, 1};
   indicesList.addIndices(indices);
   report.clear();
   for (int i : indices) {
     assertTrue("index must be contained: " + i, indicesList.contains(i));
   }
 }
コード例 #2
0
 /**
  * Optimized contains (same as core in selectedIndicesSeq), need to test if still working.
  *
  * <p>https://javafx-jira.kenai.com/browse/RT-39776
  */
 @Test
 public void testContainsNot() {
   int[] indices = new int[] {3, 5, 1};
   indicesList.addIndices(indices);
   report.clear();
   int[] notContained = new int[] {0, 7, 4, 2};
   for (int i : notContained) {
     assertFalse("index must not be contained: " + i, indicesList.contains(i));
   }
 }