"scott.stark(a)jboss.org" wrote :
| In the CompositeValueFactoryUnitTestCase case, the type has to be obtained from
Configuration.getTypeInfo(value.getClass()),
|
No it doesn't. "You pay your money and take your choice" ;-)
From AbstractMetaValueFactoryTest:
|
| /**
| * Create a meta value
| *
| * @param value the value
| * @return the meta value
| */
| protected MetaValue createMetaValue(Object value)
| {
| return metaValueFactory.create(value);
| }
|
| /**
| * Create a meta value
| *
| * @param value the value
| * @param type the type
| * @return the meta value
| */
| protected MetaValue createMetaValue(Object value, Type type)
| {
| return metaValueFactory.create(value, type);
| }
|
There's also one with TypeInfo on the real factory, but not in the test helper.
I guess there should also be methods where you pass in the MetaType?????
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134650#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...