Ignore:
Timestamp:
08/14/10 11:12:43 (22 months ago)
Author:
kasper
Message:

limited possibility of @Configured and @Provided to fields in order to make it easy to also get value of properties through PropertyDescriptor?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AnalyzerBeans/trunk/src/test/java/org/eobjects/analyzer/descriptors/AnnotationBasedAnalyzerBeanDescriptorTest.java

    r971 r974  
    3232 
    3333                assertEquals( 
    34                                 "[ConfiguredPropertyDescriptorImpl[method=setConfigured2,baseType=class java.lang.Integer], ConfiguredPropertyDescriptorImpl[field=configured1,baseType=class java.lang.String]]", 
     34                                "[ConfiguredPropertyDescriptorImpl[field=configured2,baseType=class java.lang.Integer], ConfiguredPropertyDescriptorImpl[field=configured1,baseType=class java.lang.String]]", 
    3535                                Arrays.toString(descriptor.getConfiguredProperties().toArray())); 
    3636        } 
     
    4545                                .getConfiguredProperties(); 
    4646                assertEquals( 
    47                                 "{ConfiguredPropertyDescriptorImpl[field=configured1,baseType=class java.lang.String],ConfiguredPropertyDescriptorImpl[method=setConfigured2,baseType=class java.lang.Integer],ConfiguredPropertyDescriptorImpl[field=columns,baseType=class [Lorg.eobjects.analyzer.data.InputColumn;]}", 
     47                                "{ConfiguredPropertyDescriptorImpl[field=configured1,baseType=class java.lang.String],ConfiguredPropertyDescriptorImpl[field=configured2,baseType=class java.lang.Integer],ConfiguredPropertyDescriptorImpl[field=columns,baseType=class [Lorg.eobjects.analyzer.data.InputColumn;]}", 
    4848                                ArrayUtils.toString(configuredProperties.toArray())); 
    4949 
     
    5151                ConfiguredPropertyDescriptor configuredProperty = configuredProperties 
    5252                                .iterator().next(); 
    53                 configuredProperty.assignValue(analyzerBean, "foobar"); 
     53                configuredProperty.setValue(analyzerBean, "foobar"); 
    5454                assertEquals("foobar", analyzerBean.getConfigured1()); 
    5555        } 
Note: See TracChangeset for help on using the changeset viewer.