This commit polishes tests in spring-aop by using
OrderComparator.sort() and lambda expressions instead of anonymous
classes where feasible.
Closes gh-23458
@ -129,15 +129,12 @@ public class MethodInvocationProceedingJoinPointTests {
@@ -129,15 +129,12 @@ public class MethodInvocationProceedingJoinPointTests {
assertThat(AbstractAspectJAdvice.currentJoinPoint().getSourceLocation()).as("Same source location must be returned on subsequent requests").isEqualTo(sloc);
@ -149,15 +146,12 @@ public class MethodInvocationProceedingJoinPointTests {
@@ -149,15 +146,12 @@ public class MethodInvocationProceedingJoinPointTests {
assertThat(AbstractAspectJAdvice.currentJoinPoint().getStaticPart()).as("Same static part must be returned on subsequent requests").isEqualTo(staticPart);
@ -169,12 +163,10 @@ public class MethodInvocationProceedingJoinPointTests {
@@ -169,12 +163,10 @@ public class MethodInvocationProceedingJoinPointTests {
@ -144,7 +144,7 @@ public abstract class AbstractAspectJAdvisorFactoryTests {
@@ -144,7 +144,7 @@ public abstract class AbstractAspectJAdvisorFactoryTests {
assertThat(itb.getAge()).as("Around advice must NOT apply").isEqualTo(realAge);
@ -170,7 +170,7 @@ public abstract class AbstractAspectJAdvisorFactoryTests {
@@ -170,7 +170,7 @@ public abstract class AbstractAspectJAdvisorFactoryTests {