@Test(expected = IllegalStateException.class) public void alreadyRunTest() throws Exception { this.testRunnable.start(); this.testRunnable.start(); Assert.fail("exception was not thrown"); }
public void start() throws TransactionException { if (this.alreadyRun) { throw new IllegalStateException("This TransactionRunnable has already been run and may not " + "be run again."); } this.alreadyRun = true; this.preRun(); this.run(); this.commit(); this.complete(); }
StartableTransactionRunnable extends ProvidingTransactionRunnable<T, T> { public void start() throws TransactionException { if (this.alreadyRun) { throw new IllegalStateException("This TransactionRunnable has already been run and may not " + "be run again."); } this.alreadyRun = true; this.preRun(); this.run(); this.commit(); this.complete(); } }
StartableTransactionRunnable extends ProvidingTransactionRunnable<T, T> { public void start() throws TransactionException { if (this.alreadyRun) { throw new IllegalStateException("This TransactionRunnable has already been run and may not " + "be run again."); } this.alreadyRun = true; this.preRun(); this.run(); this.commit(); this.complete(); }  }
StartableTransactionRunnable extends ProvidingTransactionRunnable<T, T> { public void start() throws TransactionException { if (this.alreadyRun) { throw new IllegalStateException("This TransactionRunnable has already been run and may not " + "be run again."); } this.alreadyRun = true; this.preRun(); this.run(); this.commit(); this.complete(); }  void start(); }
StartableTransactionRunnable extends ProvidingTransactionRunnable<T, T> { public void start() throws TransactionException { if (this.alreadyRun) { throw new IllegalStateException("This TransactionRunnable has already been run and may not " + "be run again."); } this.alreadyRun = true; this.preRun(); this.run(); this.commit(); this.complete(); }  void start();  }