Package domain.misc

Examples of domain.misc.CustomBeanWrapperFactory


    assertTrue(!meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
  }
 
  @Test
  public void shouldUseObjectWrapperFactoryWhenSet() {
    MetaObject meta = MetaObject.forObject(new Product(), MetaObject.DEFAULT_OBJECT_FACTORY, new CustomBeanWrapperFactory());
    assertTrue(meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
   
    // Make sure the old default factory is in place and still works
    meta = MetaObject.forObject(new Product());
    assertFalse(meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
View Full Code Here

TOP

Related Classes of domain.misc.CustomBeanWrapperFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.