Skip to content

Commit 8d1bf96

Browse files
committed
Polishing
(cherry picked from commit 6c08d93)
1 parent e12440a commit 8d1bf96

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

integration-tests/src/test/java/org/springframework/cache/annotation/EnableCachingIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void repositoryUsesAspectJAdviceMode() {
6363
// attempt was made to look up the AJ aspect. It's due to classpath issues
6464
// in integration-tests that it's not found.
6565
assertThatException().isThrownBy(ctx::refresh)
66-
.withMessageContaining("AspectJCachingConfiguration");
66+
.withMessageContaining("AspectJCachingConfiguration");
6767
}
6868

6969

integration-tests/src/test/java/org/springframework/core/env/EnvironmentSystemIntegrationTests.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,7 @@ void abstractApplicationContextValidatesRequiredPropertiesOnRefresh() {
542542
{
543543
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext();
544544
ctx.getEnvironment().setRequiredProperties("foo", "bar");
545-
assertThatExceptionOfType(MissingRequiredPropertiesException.class).isThrownBy(
546-
ctx::refresh);
545+
assertThatExceptionOfType(MissingRequiredPropertiesException.class).isThrownBy(ctx::refresh);
547546
}
548547

549548
{

integration-tests/src/test/java/org/springframework/transaction/annotation/EnableTransactionManagementIntegrationTests.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ void repositoryUsesAspectJAdviceMode() {
9898
// this test is a bit fragile, but gets the job done, proving that an
9999
// attempt was made to look up the AJ aspect. It's due to classpath issues
100100
// in integration-tests that it's not found.
101-
assertThatException()
102-
.isThrownBy(ctx::refresh)
103-
.withMessageContaining("AspectJJtaTransactionManagementConfiguration");
101+
assertThatException().isThrownBy(ctx::refresh)
102+
.withMessageContaining("AspectJJtaTransactionManagementConfiguration");
104103
}
105104

106105
@Test

spring-aspects/src/test/resources/org/springframework/cache/config/annotation-jcache-aspectj.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
</property>
2525
</bean>
2626

27-
<bean id="defaultCache"
28-
class="org.springframework.cache.concurrent.ConcurrentMapCacheFactoryBean">
27+
<bean id="defaultCache" class="org.springframework.cache.concurrent.ConcurrentMapCacheFactoryBean">
2928
<property name="name" value="default"/>
3029
</bean>
3130

spring-aspects/src/test/resources/org/springframework/scheduling/aspectj/annotationDrivenContext.xml

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
http://www.springframework.org/schema/task
88
https://www.springframework.org/schema/task/spring-task.xsd">
99

10-
<task:annotation-driven mode="aspectj" executor="testExecutor"
11-
exception-handler="testExceptionHandler"/>
10+
<task:annotation-driven mode="aspectj" executor="testExecutor" exception-handler="testExceptionHandler"/>
1211

1312
<task:executor id="testExecutor"/>
1413

15-
<bean id="testExceptionHandler"
16-
class="org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler"/>
14+
<bean id="testExceptionHandler" class="org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler"/>
1715

1816
</beans>

0 commit comments

Comments
 (0)