Skip to content

Commit f8a59c2

Browse files
committed
Polishing
1 parent 1166577 commit f8a59c2

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void rejectsPerCflowBelowAspect() {
9898
}
9999

100100
@Test
101-
void perTargetAspect() throws SecurityException, NoSuchMethodException {
101+
void perTargetAspect() throws Exception {
102102
TestBean target = new TestBean();
103103
int realAge = 65;
104104
target.setAge(realAge);
@@ -130,7 +130,7 @@ void perTargetAspect() throws SecurityException, NoSuchMethodException {
130130
}
131131

132132
@Test
133-
void multiplePerTargetAspects() throws SecurityException, NoSuchMethodException {
133+
void multiplePerTargetAspects() throws Exception {
134134
TestBean target = new TestBean();
135135
int realAge = 65;
136136
target.setAge(realAge);
@@ -158,7 +158,7 @@ void multiplePerTargetAspects() throws SecurityException, NoSuchMethodException
158158
}
159159

160160
@Test
161-
void multiplePerTargetAspectsWithOrderAnnotation() throws SecurityException, NoSuchMethodException {
161+
void multiplePerTargetAspectsWithOrderAnnotation() throws Exception {
162162
TestBean target = new TestBean();
163163
int realAge = 65;
164164
target.setAge(realAge);
@@ -184,7 +184,7 @@ void multiplePerTargetAspectsWithOrderAnnotation() throws SecurityException, NoS
184184
}
185185

186186
@Test
187-
void perThisAspect() throws SecurityException, NoSuchMethodException {
187+
void perThisAspect() throws Exception {
188188
TestBean target = new TestBean();
189189
int realAge = 65;
190190
target.setAge(realAge);
@@ -220,7 +220,7 @@ void perThisAspect() throws SecurityException, NoSuchMethodException {
220220
}
221221

222222
@Test
223-
void perTypeWithinAspect() throws SecurityException, NoSuchMethodException {
223+
void perTypeWithinAspect() throws Exception {
224224
TestBean target = new TestBean();
225225
int realAge = 65;
226226
target.setAge(realAge);

spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectMetadataTests.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,7 +28,6 @@
2828
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
2929

3030
/**
31-
* @since 2.0
3231
* @author Rod Johnson
3332
* @author Chris Beams
3433
* @author Sam Brannen
@@ -56,7 +55,7 @@ void perTargetAspect() {
5655
assertThat(am.getAjType().getPerClause().getKind()).isEqualTo(PerClauseKind.PERTARGET);
5756
assertThat(am.getPerClausePointcut()).isInstanceOf(AspectJExpressionPointcut.class);
5857
assertThat(((AspectJExpressionPointcut) am.getPerClausePointcut()).getExpression())
59-
.isEqualTo("execution(* *.getSpouse())");
58+
.isEqualTo("execution(* *.getSpouse())");
6059
}
6160

6261
@Test
@@ -67,7 +66,7 @@ void perThisAspect() {
6766
assertThat(am.getAjType().getPerClause().getKind()).isEqualTo(PerClauseKind.PERTHIS);
6867
assertThat(am.getPerClausePointcut()).isInstanceOf(AspectJExpressionPointcut.class);
6968
assertThat(((AspectJExpressionPointcut) am.getPerClausePointcut()).getExpression())
70-
.isEqualTo("execution(* *.getSpouse())");
69+
.isEqualTo("execution(* *.getSpouse())");
7170
}
7271

7372
}

0 commit comments

Comments
 (0)