Added a method to set properties on the spring component.
[utils] / support / general / src / test / java / org / 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  * @author Erik Brakkee
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 a convenient
17      *         method of returning multiple results from a call.
18      */
19     Map execute() throws Exception;
20 }