Add interface-based detection test

Add a test that explicitely validates that `@ManagedResource` and friends
can be set on an interface.

Issue: SPR-13138
This commit is contained in:
Stephane Nicoll
2016-01-18 14:14:17 +01:00
parent a112557dc4
commit eb49f3c225
4 changed files with 127 additions and 20 deletions

View File

@@ -20,26 +20,22 @@
</bean>
<bean id="testBean" class="org.springframework.jmx.export.annotation.AnnotationTestSubBean">
<property name="name">
<value>TEST</value>
</property>
<property name="age">
<value>100</value>
</property>
<property name="name" value="TEST"/>
<property name="age" value="100"/>
</bean>
<bean id="testInterfaceBean" class="org.springframework.jmx.export.annotation.AnotherAnnotationTestBeanImpl">
<property name="bar" value="Init value"/>
</bean>
<bean id="attributeSource" class="org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource"/>
<bean id="metadataNamingStrategy" class="org.springframework.jmx.export.naming.MetadataNamingStrategy">
<property name="attributeSource">
<ref bean="attributeSource"/>
</property>
<property name="attributeSource" ref="attributeSource"/>
</bean>
<bean id="metadataAssembler" class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler">
<property name="attributeSource">
<ref bean="attributeSource"/>
</property>
<property name="attributeSource" ref="attributeSource"/>
</bean>
</beans>