318319320321322323324325326327328
}); ClientChannel channel = new ClientChannel( connection, false, new MockEventManager(), false); // check that a HOLLOW object is infalted on "beforePropertyRead" ClientMtTable1 hollow = new ClientMtTable1(); hollow.setPersistenceState(PersistenceState.HOLLOW);
381382383384385386387388389390391
} }); ClientChannel channel = new ClientChannel( connection, false, new MockEventManager(), false); CayenneContext context = new CayenneContext(channel); context.setEntityResolver(serverContext .getEntityResolver()
7475767778798081828384
}); ClientChannel channel = new ClientChannel( connection, false, new MockEventManager(), false); CayenneContext context = new CayenneContext(channel); ObjEntity entity = new ObjEntity("test_entity"); entity.setClassName(MockPersistentObject.class.getName());
128129130131132133134135136137138
Arrays.asList(o2))); ClientChannel channel = new ClientChannel( connection, false, new MockEventManager(), false); context.setChannel(channel); QueryResponse response = channel.onQuery(context, new SelectQuery("test_entity")); assertNotNull(response);
168169170171172173174175176177178
209210211212213214215216217218219
} }; // default constructor must fail try { new ClientChannel(connection, false, new MockEventManager(), false); fail("Channel didn't throw on broken EventBridge"); } catch (CayenneRuntimeException e) { // expected }
6061626364656667686970
}; ClientChannel channel = new ClientChannel( connection, false, new MockEventManager(), false) { @Override public GraphDiff onSync( ObjectContext originatingContext,
127128129130131132133134135136137
"prePersist"); ClientChannel channel = new ClientChannel( connection, false, new MockEventManager(), false) { @Override public GraphDiff onSync( ObjectContext originatingContext,
172173174175176177178179180181182
final NoopGraphChangeHandler diffReader = new NoopGraphChangeHandler(); ClientChannel channel = new ClientChannel( connection, false, new MockEventManager(), false) { @Override public GraphDiff onSync( ObjectContext originatingContext,