Skip to content

Commit 3e45b76

Browse files
committed
Polishing
(cherry picked from commit 6c08d93)
1 parent d42c920 commit 3e45b76

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

Diff for: 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

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,7 @@ void abstractApplicationContextValidatesRequiredPropertiesOnRefresh() {
561561
{
562562
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext();
563563
ctx.getEnvironment().setRequiredProperties("foo", "bar");
564-
assertThatExceptionOfType(MissingRequiredPropertiesException.class).isThrownBy(
565-
ctx::refresh);
564+
assertThatExceptionOfType(MissingRequiredPropertiesException.class).isThrownBy(ctx::refresh);
566565
}
567566

568567
{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void repositoryUsesAspectJAdviceMode() {
9797
ctx.register(Config.class, AspectJTxConfig.class);
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
100-
// in .integration-tests that it's not found.
100+
// in integration-tests that it's not found.
101101
assertThatException()
102102
.isThrownBy(ctx::refresh)
103103
.withMessageContaining("AspectJJtaTransactionManagementConfiguration");

Diff for: 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

Diff for: 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)