}
public void testVerifyConfigurationMetaDataThatPassesAsValidMetaData()
throws Exception
{
final ComponentVerifier verifier = new ComponentVerifier();
final List issues = new ArrayList();
final Properties parameters = new Properties();
parameters.setProperty( "location", "BasicComponent-schema.xml" );
final Attribute[] attributes = new Attribute[]
{
new Attribute( "dna.configuration", parameters )
};
final ParameterDescriptor param =
new ParameterDescriptor( "X", Configuration.class.getName() );
final ParameterDescriptor[] params = new ParameterDescriptor[]{param};
final MethodDescriptor method =
new MethodDescriptor( "configure", "", params, attributes, attributes );
final ClassDescriptor descriptor =
new ClassDescriptor( BasicComponent.class.getName(),
Attribute.EMPTY_SET,
Attribute.EMPTY_SET,
FieldDescriptor.EMPTY_SET,
new MethodDescriptor[]{method} );
final RegistrationMetaClassAccessor accessor = new RegistrationMetaClassAccessor();
accessor.registerDescriptor( descriptor );
MetaClassIntrospector.setAccessor( accessor );
MetaClassIntrospector.clearCompleteCache();
verifier.verifyConfigurationMetaData( BasicComponent.class, issues );
assertNoIssues( issues );
}