(no commit message)
[utils] / support / src / test / java / wamblee / test / TestTransactionCallback.java
1 package org.wamblee.test;
2
3 import java.util.Map;
4
5 /**
6  * Transaction callback for testing. The test will fail if any type of exception
7  * is thrown.
8  */
9 public interface TestTransactionCallback {
10     /**
11      * Executes code within a transaction, causing the testcase to fail if any
12      * type of exception is thrown.
13      * 
14      * @return A map containg the resuls of the execution. This is a convenient
15      *         method of returning multiple results from a call.
16      */
17     Map execute() throws Exception;
18 }