private static void stopKernelTransactions( KernelTransactions kernelTransactions ) { try { kernelTransactions.stop(); } catch ( Throwable t ) { throw new RuntimeException( t ); } }
@Test public void startNewTransactionOnRestartedKErnelTransactions() throws Throwable { KernelTransactions kernelTransactions = newKernelTransactions(); kernelTransactions.stop(); kernelTransactions.start(); assertNotNull( "New transaction created by restarted kernel transactions component.", kernelTransactions.newInstance( KernelTransaction.Type.explicit, AUTH_DISABLED, 0L ) ); }