The Spring Framework

org.springframework.test.context.transaction
Annotation Type BeforeTransaction


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface BeforeTransaction

Test annotation to indicate that the annotated public void method should be executed before a transaction is started for test methods configured to run within a transaction via the @Transactional annotation.

The @BeforeTransaction methods of superclasses will be executed before those of the current class.

Since:
2.5
Author:
Sam Brannen
See Also:
Transactional


The Spring Framework

Copyright © 2002-2008 The Spring Framework.