JumpToCodeClient { public Set<String> loggerPatterns() throws IOException { final GetMethod method = new GetMethod(getUrl()); method.setQueryString(new NameValuePair[]{new NameValuePair("o", "loggersConfig")}); final String content = executeAndGetContent(method); final Type type = new TypeToken<Collection<LoggerPatternsResponse>>() { }.getType(); final List<LoggerPatternsResponse> o = new Gson().fromJson(content, type); return o.stream().flatMap(patterns -> patterns.getPatterns().stream()).collect(Collectors.toSet()); } JumpToCodeClient(Configuration configuration); String getContent(final LocationInfo locationInfo); Ide getIde(String host, int port); String getUrl(LocationInfo locationInfo); boolean isJumpable(final LocationInfo locationInfo); Ide getIde(); Set<JumpToCodeService.Capabilities> capabilities(); Set<String> loggerPatterns(); void clearLocationCaches();  }
@Test public void testLoggerPatterns() throws Exception { Assertions.assertThat(jumpToCodeClient.loggerPatterns()) .containsOnly( "%level %date %logger %t %msg%n", "%level %date %logger %msg%n" ); }