@Test public void vitamClientFactoryTest() { final Client client = mock(Client.class); final ClientFactoryTest cft = new ClientFactoryTest(CONFIGURATION, RESOURCE_PATH, client); assertEquals("/" + RESOURCE_PATH, cft.getResourcePath()); assertEquals(client, cft.getHttpClient(false)); assertEquals(cft.getHttpClient(), cft.getHttpClient(false)); assertTrue(cft.toString().contains(RESOURCE_PATH)); assertEquals(VitamClientType.PRODUCTION, cft.getVitamClientType()); try (BasicClient vitamClient = cft.getClient()) { assertEquals(((DefaultClient) vitamClient).getClientFactory().getClientConfiguration(), cft.getClientConfiguration()); assertTrue(vitamClient.toString().contains(cft.toString())); } }
protected VitamClientFactory(ClientConfiguration configuration, String resourcePath) { this(configuration, resourcePath, true); }
VitamClientFactory implements VitamClientFactoryInterface<T> { protected VitamClientFactory(ClientConfiguration configuration, String resourcePath) { this(configuration, resourcePath, true); } }
VitamClientFactory implements VitamClientFactoryInterface<T> { protected VitamClientFactory(ClientConfiguration configuration, String resourcePath) { this(configuration, resourcePath, true); } protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath); protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath,
                                 boolean chunkedMode); protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath, Client client); }
VitamClientFactory implements VitamClientFactoryInterface<T> { protected VitamClientFactory(ClientConfiguration configuration, String resourcePath) { this(configuration, resourcePath, true); } protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath); protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath,
                                 boolean chunkedMode); protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath, Client client); void setGzipEncoded(boolean allowGzipEncoded); void setGzipdecoded(boolean allowGzipDecoded); @Override void changeResourcePath(String resourcePath); @Override void changeServerPort(int port); @Override VitamClientType getVitamClientType(); @Override VitamClientFactory<T> setVitamClientType(VitamClientType vitamClientType); @Override void resume(Client client, boolean chunk); @Override Client getHttpClient(); @Override Client getHttpClient(boolean useChunkedMode); @Override String getResourcePath(); @Override String getServiceUrl(); @Override String toString(); @Override final ClientConfiguration getClientConfiguration(); @Override final Map<VitamRestEasyConfiguration, Object> getDefaultConfigCient(); @Override final Map<VitamRestEasyConfiguration, Object> getDefaultConfigCient(boolean chunkedMode); @Override synchronized void shutdown(); @VisibleForTesting static void resetConnections(); }
VitamClientFactory implements VitamClientFactoryInterface<T> { protected VitamClientFactory(ClientConfiguration configuration, String resourcePath) { this(configuration, resourcePath, true); } protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath); protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath,
                                 boolean chunkedMode); protected  VitamClientFactory(ClientConfiguration configuration, String resourcePath, Client client); void setGzipEncoded(boolean allowGzipEncoded); void setGzipdecoded(boolean allowGzipDecoded); @Override void changeResourcePath(String resourcePath); @Override void changeServerPort(int port); @Override VitamClientType getVitamClientType(); @Override VitamClientFactory<T> setVitamClientType(VitamClientType vitamClientType); @Override void resume(Client client, boolean chunk); @Override Client getHttpClient(); @Override Client getHttpClient(boolean useChunkedMode); @Override String getResourcePath(); @Override String getServiceUrl(); @Override String toString(); @Override final ClientConfiguration getClientConfiguration(); @Override final Map<VitamRestEasyConfiguration, Object> getDefaultConfigCient(); @Override final Map<VitamRestEasyConfiguration, Object> getDefaultConfigCient(boolean chunkedMode); @Override synchronized void shutdown(); @VisibleForTesting static void resetConnections();  }