Ejemplo n.º 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);
  }
Ejemplo n.º 2
0
 protected void assertItemValue(Object obj) throws Exception {
   TALinkedListItem item = (TALinkedListItem) obj;
   Assert.areEqual(newList(), item.list());
 }
Ejemplo n.º 3
0
 protected Object createItem() throws Exception {
   TALinkedListItem item = new TALinkedListItem();
   item.list = newList();
   return item;
 }