예제 #1
0
 @Test
 public void testChangeNullOnDirectAddAfterItemsModified() {
   int[] indices = new int[] {3, 5, 1};
   indicesList.addIndices(indices);
   report.clear();
   ListChangeReport itemsReport = new ListChangeReport(items);
   //        new PrintingListChangeListener("Items removed before", indicesList);
   items.remove(0);
   indicesList.addIndices(6);
   assertEquals(null, indicesList.getSourceChange());
 }
예제 #2
0
 /**
  * Since extraction of IndicesBase Changed behaviour of sourceChange: valid only from before
  * endChange to after endChange!
  */
 @Test
 @Ignore
 public void testChangeOnClearItems() {
   int[] indices = new int[] {3, 5, 1};
   indicesList.addIndices(indices);
   report.clear();
   ListChangeReport itemsReport = new ListChangeReport(items);
   //        new PrintingListChangeListener("Items removed before", indicesList);
   items.clear();
   assertEquals(itemsReport.getLastChange(), indicesList.getSourceChange());
 }
예제 #3
0
 @Test
 public void testChangeNullOnDirectSet() {
   indicesList.setIndices(0);
   assertEquals(null, indicesList.getSourceChange());
 }