예제 #1
0
  public void testDeactivateDepth() throws Exception {
    TALinkedListItem item = (TALinkedListItem) retrieveOnlyInstance();
    TALinkedList list = item.list();
    TALinkedList next3 = list.nextN(3);
    TALinkedList next5 = list.nextN(5);

    Assert.isNotNull(next3.next());
    Assert.isNotNull(next5.next());

    db().deactivate(list, 4);

    Assert.isNull(list.next);
    Assert.areEqual(0, list.value);

    // FIXME: test fails if uncomenting the following assertion.
    //	    	Assert.isNull(next3.next);
    Assert.isNotNull(next5.next);
  }
예제 #2
0
 protected void assertItemValue(Object obj) throws Exception {
   TALinkedListItem item = (TALinkedListItem) obj;
   Assert.areEqual(newList(), item.list());
 }
예제 #3
0
 protected Object createItem() throws Exception {
   TALinkedListItem item = new TALinkedListItem();
   item.list = newList();
   return item;
 }