Search in sources :

Example 1 with ClientProxyFactory

use of io.crnk.client.internal.proxy.ClientProxyFactory in project crnk-framework by crnk-project.

the class ClientResourceUpsertTest method setup.

@Before
public void setup() {
    boot = new CrnkBoot();
    boot.addModule(new TestModule());
    boot.boot();
    PropertiesProvider propertiesProvider = new NullPropertiesProvider();
    ClientProxyFactory proxyFactory = Mockito.mock(ClientProxyFactory.class);
    upsert = new ClientResourceUpsert(boot.getResourceRegistry(), propertiesProvider, boot.getModuleRegistry().getTypeParser(), boot.getObjectMapper(), boot.getDocumentMapper(), proxyFactory);
}
Also used : PropertiesProvider(io.crnk.core.engine.properties.PropertiesProvider) NullPropertiesProvider(io.crnk.core.engine.properties.NullPropertiesProvider) CrnkBoot(io.crnk.core.boot.CrnkBoot) ClientProxyFactory(io.crnk.client.internal.proxy.ClientProxyFactory) NullPropertiesProvider(io.crnk.core.engine.properties.NullPropertiesProvider) TestModule(io.crnk.test.mock.TestModule) Before(org.junit.Before)

Aggregations

ClientProxyFactory (io.crnk.client.internal.proxy.ClientProxyFactory)1 CrnkBoot (io.crnk.core.boot.CrnkBoot)1 NullPropertiesProvider (io.crnk.core.engine.properties.NullPropertiesProvider)1 PropertiesProvider (io.crnk.core.engine.properties.PropertiesProvider)1 TestModule (io.crnk.test.mock.TestModule)1 Before (org.junit.Before)1