@BeforeMethod
public void setUpExtra() {
getCount = 0;
// throw away the current factory and replace it with one that tracks calls
setUpObjectifyFactory(new TestObjectifyFactory() {
@Override
protected AsyncDatastoreService createRawAsyncDatastoreService(DatastoreServiceConfig cfg) {
return (AsyncDatastoreService)Proxy.newProxyInstance(this.getClass().getClassLoader(), new Class[] { AsyncDatastoreService.class }, new CountingProxy(super.createRawAsyncDatastoreService(cfg)));
}
});