BAEL-20552: Migrate spring-4 module to the com.baeldung package
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.baeldung.spring43.defaultmethods;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.test.context.transaction.AfterTransaction;
|
||||
import org.springframework.test.context.transaction.BeforeTransaction;
|
||||
|
||||
public interface ITransactionalUnitTest {
|
||||
|
||||
Logger log = LoggerFactory.getLogger(ITransactionalUnitTest.class);
|
||||
|
||||
@BeforeTransaction
|
||||
default void beforeTransaction() {
|
||||
log.info("Opening transaction");
|
||||
}
|
||||
|
||||
@AfterTransaction
|
||||
default void afterTransaction() {
|
||||
log.info("Closing transaction");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user