@Test public void extractKey_ShouldReturnKey_InUppercase() throws Exception { String testLine = "%{key=value}"; assertThat(subject.extractKey(testLine)).isEqualTo("KEY"); }
String extractKey(String t) { Matcher m = FORMAT_PATTERN.matcher(t); m.find(); return m.group(1).toUpperCase(Locale.ENGLISH); }
ProfileParserImpl implements ProfileParser { String extractKey(String t) { Matcher m = FORMAT_PATTERN.matcher(t); m.find(); return m.group(1).toUpperCase(Locale.ENGLISH); } }
ProfileParserImpl implements ProfileParser { String extractKey(String t) { Matcher m = FORMAT_PATTERN.matcher(t); m.find(); return m.group(1).toUpperCase(Locale.ENGLISH); }  }
ProfileParserImpl implements ProfileParser { String extractKey(String t) { Matcher m = FORMAT_PATTERN.matcher(t); m.find(); return m.group(1).toUpperCase(Locale.ENGLISH); }  @Override Optional<Profile> parseFile(Path path); }
ProfileParserImpl implements ProfileParser { String extractKey(String t) { Matcher m = FORMAT_PATTERN.matcher(t); m.find(); return m.group(1).toUpperCase(Locale.ENGLISH); }  @Override Optional<Profile> parseFile(Path path); static final Pattern FORMAT_PATTERN; }