Polish
This commit is contained in:
@@ -46,7 +46,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
class PersistenceExceptionTranslationPostProcessorTests {
|
||||
|
||||
@Test
|
||||
public void proxiesCorrectly() {
|
||||
void proxiesCorrectly() {
|
||||
GenericApplicationContext gac = new GenericApplicationContext();
|
||||
gac.registerBeanDefinition("translator",
|
||||
new RootBeanDefinition(PersistenceExceptionTranslationPostProcessor.class));
|
||||
|
||||
@@ -222,7 +222,7 @@ class EnableTransactionManagementTests {
|
||||
* get loaded -- or in this case, attempted to be loaded at which point the test fails.
|
||||
*/
|
||||
@Test
|
||||
public void proxyTypeAspectJCausesRegistrationOfAnnotationTransactionAspect() {
|
||||
void proxyTypeAspectJCausesRegistrationOfAnnotationTransactionAspect() {
|
||||
// should throw CNFE when trying to load AnnotationTransactionAspect.
|
||||
// Do you actually have org.springframework.aspects on the classpath?
|
||||
assertThatException()
|
||||
|
||||
@@ -82,7 +82,7 @@ class AnnotationDrivenTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void serializableWithPreviousUsage() throws Exception {
|
||||
void serializableWithPreviousUsage() throws Exception {
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("annotationDrivenProxyTargetClassTests.xml", getClass());
|
||||
TransactionalService service = context.getBean("service", TransactionalService.class);
|
||||
service.setSomething("someName");
|
||||
@@ -91,7 +91,7 @@ class AnnotationDrivenTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void serializableWithoutPreviousUsage() throws Exception {
|
||||
void serializableWithoutPreviousUsage() throws Exception {
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("annotationDrivenProxyTargetClassTests.xml", getClass());
|
||||
TransactionalService service = context.getBean("service", TransactionalService.class);
|
||||
service = SerializationTestUtils.serializeAndDeserialize(service);
|
||||
|
||||
@@ -37,7 +37,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
class SimpleTransactionScopeTests {
|
||||
|
||||
@Test
|
||||
public void getFromScope() {
|
||||
void getFromScope() {
|
||||
GenericApplicationContext context = new GenericApplicationContext();
|
||||
context.getBeanFactory().registerScope("tx", new SimpleTransactionScope());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user