Polishing
This commit is contained in:
parent
1166577d2c
commit
f8a59c267f
|
|
@ -98,7 +98,7 @@ abstract class AbstractAspectJAdvisorFactoryTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void perTargetAspect() throws SecurityException, NoSuchMethodException {
|
void perTargetAspect() throws Exception {
|
||||||
TestBean target = new TestBean();
|
TestBean target = new TestBean();
|
||||||
int realAge = 65;
|
int realAge = 65;
|
||||||
target.setAge(realAge);
|
target.setAge(realAge);
|
||||||
|
|
@ -130,7 +130,7 @@ abstract class AbstractAspectJAdvisorFactoryTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void multiplePerTargetAspects() throws SecurityException, NoSuchMethodException {
|
void multiplePerTargetAspects() throws Exception {
|
||||||
TestBean target = new TestBean();
|
TestBean target = new TestBean();
|
||||||
int realAge = 65;
|
int realAge = 65;
|
||||||
target.setAge(realAge);
|
target.setAge(realAge);
|
||||||
|
|
@ -158,7 +158,7 @@ abstract class AbstractAspectJAdvisorFactoryTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void multiplePerTargetAspectsWithOrderAnnotation() throws SecurityException, NoSuchMethodException {
|
void multiplePerTargetAspectsWithOrderAnnotation() throws Exception {
|
||||||
TestBean target = new TestBean();
|
TestBean target = new TestBean();
|
||||||
int realAge = 65;
|
int realAge = 65;
|
||||||
target.setAge(realAge);
|
target.setAge(realAge);
|
||||||
|
|
@ -184,7 +184,7 @@ abstract class AbstractAspectJAdvisorFactoryTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void perThisAspect() throws SecurityException, NoSuchMethodException {
|
void perThisAspect() throws Exception {
|
||||||
TestBean target = new TestBean();
|
TestBean target = new TestBean();
|
||||||
int realAge = 65;
|
int realAge = 65;
|
||||||
target.setAge(realAge);
|
target.setAge(realAge);
|
||||||
|
|
@ -220,7 +220,7 @@ abstract class AbstractAspectJAdvisorFactoryTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void perTypeWithinAspect() throws SecurityException, NoSuchMethodException {
|
void perTypeWithinAspect() throws Exception {
|
||||||
TestBean target = new TestBean();
|
TestBean target = new TestBean();
|
||||||
int realAge = 65;
|
int realAge = 65;
|
||||||
target.setAge(realAge);
|
target.setAge(realAge);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2020 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -28,7 +28,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.0
|
|
||||||
* @author Rod Johnson
|
* @author Rod Johnson
|
||||||
* @author Chris Beams
|
* @author Chris Beams
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
|
|
@ -56,7 +55,7 @@ class AspectMetadataTests {
|
||||||
assertThat(am.getAjType().getPerClause().getKind()).isEqualTo(PerClauseKind.PERTARGET);
|
assertThat(am.getAjType().getPerClause().getKind()).isEqualTo(PerClauseKind.PERTARGET);
|
||||||
assertThat(am.getPerClausePointcut()).isInstanceOf(AspectJExpressionPointcut.class);
|
assertThat(am.getPerClausePointcut()).isInstanceOf(AspectJExpressionPointcut.class);
|
||||||
assertThat(((AspectJExpressionPointcut) am.getPerClausePointcut()).getExpression())
|
assertThat(((AspectJExpressionPointcut) am.getPerClausePointcut()).getExpression())
|
||||||
.isEqualTo("execution(* *.getSpouse())");
|
.isEqualTo("execution(* *.getSpouse())");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -67,7 +66,7 @@ class AspectMetadataTests {
|
||||||
assertThat(am.getAjType().getPerClause().getKind()).isEqualTo(PerClauseKind.PERTHIS);
|
assertThat(am.getAjType().getPerClause().getKind()).isEqualTo(PerClauseKind.PERTHIS);
|
||||||
assertThat(am.getPerClausePointcut()).isInstanceOf(AspectJExpressionPointcut.class);
|
assertThat(am.getPerClausePointcut()).isInstanceOf(AspectJExpressionPointcut.class);
|
||||||
assertThat(((AspectJExpressionPointcut) am.getPerClausePointcut()).getExpression())
|
assertThat(((AspectJExpressionPointcut) am.getPerClausePointcut()).getExpression())
|
||||||
.isEqualTo("execution(* *.getSpouse())");
|
.isEqualTo("execution(* *.getSpouse())");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue