|
|
|
|
@ -1,5 +1,5 @@
@@ -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. |
|
|
|
|
@ -153,7 +153,7 @@ public class AopNamespaceHandlerEventTests {
@@ -153,7 +153,7 @@ public class AopNamespaceHandlerEventTests {
|
|
|
|
|
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(); |
|
|
|
|
|