@Test(expected = IllegalArgumentException.class) public void runInTest() throws Exception { new RootTransactionRunnable().runIn(new TransactionRunnable()); }
@Override public <U extends T> TransactionRunnable<U> runIn(final TransactionRunnable<U> parentRunnable) { throw new IllegalArgumentException("A RootTransactionRunnable cannot safely be runIn() any other " + "TransactionRunnable."); }
RootTransactionRunnable extends StartableTransactionRunnable<T> { @Override public <U extends T> TransactionRunnable<U> runIn(final TransactionRunnable<U> parentRunnable) { throw new IllegalArgumentException("A RootTransactionRunnable cannot safely be runIn() any other " + "TransactionRunnable."); } }
RootTransactionRunnable extends StartableTransactionRunnable<T> { @Override public <U extends T> TransactionRunnable<U> runIn(final TransactionRunnable<U> parentRunnable) { throw new IllegalArgumentException("A RootTransactionRunnable cannot safely be runIn() any other " + "TransactionRunnable."); }  }
RootTransactionRunnable extends StartableTransactionRunnable<T> { @Override public <U extends T> TransactionRunnable<U> runIn(final TransactionRunnable<U> parentRunnable) { throw new IllegalArgumentException("A RootTransactionRunnable cannot safely be runIn() any other " + "TransactionRunnable."); }  @Override TransactionRunnable<U> runIn(final TransactionRunnable<U> parentRunnable); }
RootTransactionRunnable extends StartableTransactionRunnable<T> { @Override public <U extends T> TransactionRunnable<U> runIn(final TransactionRunnable<U> parentRunnable) { throw new IllegalArgumentException("A RootTransactionRunnable cannot safely be runIn() any other " + "TransactionRunnable."); }  @Override TransactionRunnable<U> runIn(final TransactionRunnable<U> parentRunnable);  }