Search in sources :

Example 1 with ModelSynchronizer

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;
}
Also used : DefaultModelSynchronizer(com.canoo.dp.impl.client.legacy.DefaultModelSynchronizer) ClientModelStore(com.canoo.dp.impl.client.legacy.ClientModelStore) ModelSynchronizer(com.canoo.dp.impl.client.legacy.ModelSynchronizer) DefaultModelSynchronizer(com.canoo.dp.impl.client.legacy.DefaultModelSynchronizer)

Example 2 with ModelSynchronizer

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();
}
Also used : DefaultModelSynchronizer(com.canoo.dp.impl.client.legacy.DefaultModelSynchronizer) ClientModelStore(com.canoo.dp.impl.client.legacy.ClientModelStore) ModelSynchronizer(com.canoo.dp.impl.client.legacy.ModelSynchronizer) DefaultModelSynchronizer(com.canoo.dp.impl.client.legacy.DefaultModelSynchronizer) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

ClientModelStore (com.canoo.dp.impl.client.legacy.ClientModelStore)2 DefaultModelSynchronizer (com.canoo.dp.impl.client.legacy.DefaultModelSynchronizer)2 ModelSynchronizer (com.canoo.dp.impl.client.legacy.ModelSynchronizer)2 BeforeMethod (org.testng.annotations.BeforeMethod)1