From cdb85206a0a64e1b37f41cbafa64c70d74f5b0c4 Mon Sep 17 00:00:00 2001 From: wentch <22250530@qq.com> Date: Tue, 26 Jan 2016 11:03:49 +0800 Subject: [PATCH] --- test/org/redkale/source/FilterNodeTest.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/org/redkale/source/FilterNodeTest.java b/test/org/redkale/source/FilterNodeTest.java index c635f3c25..02b524aef 100644 --- a/test/org/redkale/source/FilterNodeTest.java +++ b/test/org/redkale/source/FilterNodeTest.java @@ -19,11 +19,12 @@ import org.redkale.convert.json.*; public class FilterNodeTest { public static void main(String[] args) throws Exception { + final Properties props = new Properties(); final Function fullloader = (Class t) -> new ArrayList(); - final Function func = (Class t) -> EntityInfo.load(t, 0, false, fullloader); - final EntityInfo carEntity = EntityInfo.load(CarTestTable.class, 0, false, (t) -> CarTestTable.createList()); - final EntityInfo userEntity = EntityInfo.load(UserTestTable.class, 0, false, (t) -> UserTestTable.createList()); - final EntityInfo typeEntity = EntityInfo.load(CarTypeTestTable.class, 0, false, (t) -> CarTypeTestTable.createList()); + final Function func = (Class t) -> EntityInfo.load(t, 0, false, props, fullloader); + final EntityInfo carEntity = EntityInfo.load(CarTestTable.class, 0, false, props, (t) -> CarTestTable.createList()); + final EntityInfo userEntity = EntityInfo.load(UserTestTable.class, 0, false, props, (t) -> UserTestTable.createList()); + final EntityInfo typeEntity = EntityInfo.load(CarTypeTestTable.class, 0, false, props, (t) -> CarTypeTestTable.createList()); final CarTestBean bean = new CarTestBean(); bean.carid = 70002; @@ -49,8 +50,8 @@ public class FilterNodeTest { assert beanNode.isCacheUseable(func) : "isCacheUseable 应该是true"; System.out.println("node.Predicate = " + node.createPredicate(carEntity.getCache())); System.out.println("bean.Predicate = " + beanNode.createPredicate(carEntity.getCache())); - System.out.println("node.sheet = " +carEntity.getCache().querySheet(null, new Flipper(), node)); - System.out.println("bean.sheet = " +carEntity.getCache().querySheet(null, new Flipper(), beanNode)); + System.out.println("node.sheet = " + carEntity.getCache().querySheet(null, new Flipper(), node)); + System.out.println("bean.sheet = " + carEntity.getCache().querySheet(null, new Flipper(), beanNode)); } public static class CarTestBean implements FilterBean {