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); }
private TALinkedList newList() { return TALinkedList.newList(10); }