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