@Test public void testObjectMapperIsConfigured() throws IOException { JsonBean expBean = new JsonBean(); expBean.setName("test"); expBean.setAge(42); ObjectMapper mapper = ServiceFactory.getObjectMapper(); assertThat(mapper).isNotNull(); JsonBean bean = mapper.readValue(getClass().getResource("/testPerson.json"), JsonBean.class); assertThat(bean).isEqualTo(expBean); }
public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; }
ServiceFactory { public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; } }
ServiceFactory { public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; } ServiceFactory();   ServiceFactory(HttpClientFactory httpClientFactory); }
ServiceFactory { public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; } ServiceFactory();   ServiceFactory(HttpClientFactory httpClientFactory); static ObjectMapper getObjectMapper(); HttpClient createHttpClient(boolean useProxy, String proxyHost, int proxyPort); }
ServiceFactory { public static ObjectMapper getObjectMapper() { return LazyMapperHolder.MAPPER; } ServiceFactory();   ServiceFactory(HttpClientFactory httpClientFactory); static ObjectMapper getObjectMapper(); HttpClient createHttpClient(boolean useProxy, String proxyHost, int proxyPort);  }