use of com.canoo.dp.impl.client.legacy.ModelSynchronizer in project dolphin-platform by canoo.
the class AbstractDolphinBasedTest method createClientModelStore.
protected ClientModelStore createClientModelStore(final AbstractClientConnector connector) {
ModelSynchronizer defaultModelSynchronizer = new DefaultModelSynchronizer(() -> connector);
ClientModelStore clientModelStore = new ClientModelStore(defaultModelSynchronizer);
return clientModelStore;
}
use of com.canoo.dp.impl.client.legacy.ModelSynchronizer in project dolphin-platform by canoo.
the class ClientConnectorTests method setUp.
@BeforeMethod
public void setUp() {
ModelSynchronizer defaultModelSynchronizer = new DefaultModelSynchronizer(() -> clientConnector);
clientModelStore = new ClientModelStore(defaultModelSynchronizer);
clientConnector = new TestClientConnector(clientModelStore, DirectExecutor.getInstance());
try {
attributeChangeListener = clientModelStore.getAttributeChangeListener();
} catch (Exception e) {
throw new RuntimeException(e);
}
clientConnector.connect(false);
initLatch();
}
Aggregations