X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Ftest%2FTestTransactionCallbackWithoutResult.java;fp=support%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Ftest%2FTestTransactionCallbackWithoutResult.java;h=84e213f5bcf39b371a4bc9c4570f0b04759d2b06;hb=62f165891f08ae532b5a794af11d7338a93f9a43;hp=0000000000000000000000000000000000000000;hpb=07cedd3f0730646ea35a7f668b3e1e872a4605d9;p=utils diff --git a/support/src/test/java/org/wamblee/test/TestTransactionCallbackWithoutResult.java b/support/src/test/java/org/wamblee/test/TestTransactionCallbackWithoutResult.java new file mode 100644 index 00000000..84e213f5 --- /dev/null +++ b/support/src/test/java/org/wamblee/test/TestTransactionCallbackWithoutResult.java @@ -0,0 +1,14 @@ +package org.wamblee.test; + +/** + * Transaction callback for testing. The test will fail if any type of exception + * is thrown. + */ +public interface TestTransactionCallbackWithoutResult { + /** + * Executes code within a transaction, causing the testcase to fail if any + * type of exception is thrown. + * + */ + void execute() throws Exception; +}