@Test public void testCommitNothing() { try { txList.commitEvent(); } catch (IllegalStateException e) { assertEquals("No ListEvent exists to commit", e.getMessage()); } }
public void commitEvent() { if (rollbackSupport != null && txContextStack.isEmpty()) throw new IllegalStateException("No ListEvent exists to commit"); txContextStack.remove(txContextStack.size()-1).commit(); }
TransactionList extends TransformedList<E, E> { public void commitEvent() { if (rollbackSupport != null && txContextStack.isEmpty()) throw new IllegalStateException("No ListEvent exists to commit"); txContextStack.remove(txContextStack.size()-1).commit(); } }
TransactionList extends TransformedList<E, E> { public void commitEvent() { if (rollbackSupport != null && txContextStack.isEmpty()) throw new IllegalStateException("No ListEvent exists to commit"); txContextStack.remove(txContextStack.size()-1).commit(); } TransactionList(EventList<E> source);   TransactionList(EventList<E> source, boolean rollbackSupport); }
TransactionList extends TransformedList<E, E> { public void commitEvent() { if (rollbackSupport != null && txContextStack.isEmpty()) throw new IllegalStateException("No ListEvent exists to commit"); txContextStack.remove(txContextStack.size()-1).commit(); } TransactionList(EventList<E> source);   TransactionList(EventList<E> source, boolean rollbackSupport); void beginEvent(); void beginEvent(boolean buffered); void commitEvent(); void rollbackEvent(); @Override void dispose(); @Override void listChanged(ListEvent<E> listChanges); }
TransactionList extends TransformedList<E, E> { public void commitEvent() { if (rollbackSupport != null && txContextStack.isEmpty()) throw new IllegalStateException("No ListEvent exists to commit"); txContextStack.remove(txContextStack.size()-1).commit(); } TransactionList(EventList<E> source);   TransactionList(EventList<E> source, boolean rollbackSupport); void beginEvent(); void beginEvent(boolean buffered); void commitEvent(); void rollbackEvent(); @Override void dispose(); @Override void listChanged(ListEvent<E> listChanges);  }