Skip to content

Commit

Permalink
Delete unused XML config in AOP namespace tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jan 26, 2022
1 parent 1272cd5 commit bf1cf54
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -153,7 +153,7 @@ public void testAdvisorEventsWithDirectPointcut() {
public void testAspectEvent() {
this.reader.loadBeanDefinitions(CONTEXT);
ComponentDefinition[] componentDefinitions = this.eventListener.getComponentDefinitions();
assertThat(componentDefinitions.length).as("Incorrect number of events fired").isEqualTo(5);
assertThat(componentDefinitions.length).as("Incorrect number of events fired").isEqualTo(2);

boolean condition = componentDefinitions[0] instanceof CompositeComponentDefinition;
assertThat(condition).as("No holder with nested components").isTrue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
</aop:aspect>
</aop:config>

<bean id="getNameCounter" class="org.springframework.aop.testfixture.advice.CountingBeforeAdvice"/>

<bean id="getAgeCounter" class="org.springframework.aop.testfixture.advice.CountingBeforeAdvice"/>

<bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>

<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
</aop:aspect>
</aop:config>

<bean id="getAgeCounter" class="org.springframework.aop.testfixture.advice.CountingBeforeAdvice"/>

<bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>

<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
</aop:aspect>
</aop:config>

<bean id="getAgeCounter" class="org.springframework.aop.testfixture.advice.CountingBeforeAdvice"/>

<bean id="testBean" class="org.springframework.beans.testfixture.beans.TestBean"/>

<bean id="countingAdvice" class="org.springframework.aop.config.CountingAspectJAdvice"/>

</beans>

0 comments on commit bf1cf54

Please sign in to comment.