本文整理汇总了Java中org.apache.ibatis.domain.misc.CustomBeanWrapper类的典型用法代码示例。如果您正苦于以下问题:Java CustomBeanWrapper类的具体用法?Java CustomBeanWrapper怎么用?Java CustomBeanWrapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CustomBeanWrapper类属于org.apache.ibatis.domain.misc包,在下文中一共展示了CustomBeanWrapper类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: shouldUseObjectWrapperFactoryWhenSet
点赞 2
import org.apache.ibatis.domain.misc.CustomBeanWrapper; //导入依赖的package包/类
@Test
public void shouldUseObjectWrapperFactoryWhenSet() {
MetaObject meta = MetaObject.forObject(new Author(), SystemMetaObject.DEFAULT_OBJECT_FACTORY, new CustomBeanWrapperFactory(), new DefaultReflectorFactory());
assertTrue(meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
// Make sure the old default factory is in place and still works
meta = SystemMetaObject.forObject(new Author());
assertFalse(meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
}
开发者ID:yuexiahandao,
项目名称:MybatisCode,
代码行数:10,
代码来源:MetaObjectTest.java
示例2: shouldUseObjectWrapperFactoryWhenSet
点赞 2
import org.apache.ibatis.domain.misc.CustomBeanWrapper; //导入依赖的package包/类
@Test
public void shouldUseObjectWrapperFactoryWhenSet() {
MetaObject meta = MetaObject.forObject(new Author(), SystemMetaObject.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 = SystemMetaObject.forObject(new Author());
assertFalse(meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
}
开发者ID:shurun19851206,
项目名称:mybaties,
代码行数:10,
代码来源:MetaObjectTest.java
示例3: shouldNotUseObjectWrapperFactoryByDefault
点赞 2
import org.apache.ibatis.domain.misc.CustomBeanWrapper; //导入依赖的package包/类
@Test
public void shouldNotUseObjectWrapperFactoryByDefault() {
MetaObject meta = SystemMetaObject.forObject(new Author());
assertTrue(!meta.getObjectWrapper().getClass().equals(CustomBeanWrapper.class));
}
开发者ID:yuexiahandao,
项目名称:MybatisCode,
代码行数:6,
代码来源:MetaObjectTest.java