Hey all, another question.
I've got this little class to parse Strings into TimeIntervalRanges. I followed everything I could, extending PropertyEditorSupport and its getAsText/setAsText methods. I added this blurb:
To my configuration file. The other junit tests for that class run fine. As a final test, I wire in a class called Container (which just holds one of these types as a member var (and c'tor arg)).Code:<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer"> <property name="customEditors"> <map> <entry key="edu.vt.iddl.meval.versioning.TimeIntervalRange"> <bean class="edu.vt.iddl.meval.versioning.TimeIntervalRange" /> </entry> </map> </property> </bean>
The context config file's brought in through @ContextConfiguration, and run via @RunWith(SpringJUnit4ClassRunner.class), in maven 2 with surefire 2.4.2.
Is there some workaround to test this basic functionality? Am I missing something obvious?
Thanks in advance!


Reply With Quote