@Test public void parsesUseCasesWithMultipleDelimiters() { assertThat(UseCaseUtils.getPaxosUseCasePrefix("a!b!c!d")).isEqualTo("a!b!c"); assertThat(UseCaseUtils.getPaxosUseCasePrefix("!!!!!!!")).isEqualTo("!!!!!!"); }
public static String getPaxosUseCasePrefix(String useCase) { Matcher matcher = PATTERN.matcher(useCase); Preconditions.checkState(matcher.find(), "Unexpected use case format", SafeArg.of("useCase", useCase)); return matcher.group(1); }
UseCaseUtils { public static String getPaxosUseCasePrefix(String useCase) { Matcher matcher = PATTERN.matcher(useCase); Preconditions.checkState(matcher.find(), "Unexpected use case format", SafeArg.of("useCase", useCase)); return matcher.group(1); } }
UseCaseUtils { public static String getPaxosUseCasePrefix(String useCase) { Matcher matcher = PATTERN.matcher(useCase); Preconditions.checkState(matcher.find(), "Unexpected use case format", SafeArg.of("useCase", useCase)); return matcher.group(1); } private  UseCaseUtils(); }
UseCaseUtils { public static String getPaxosUseCasePrefix(String useCase) { Matcher matcher = PATTERN.matcher(useCase); Preconditions.checkState(matcher.find(), "Unexpected use case format", SafeArg.of("useCase", useCase)); return matcher.group(1); } private  UseCaseUtils(); static String getPaxosUseCasePrefix(String useCase); }
UseCaseUtils { public static String getPaxosUseCasePrefix(String useCase) { Matcher matcher = PATTERN.matcher(useCase); Preconditions.checkState(matcher.find(), "Unexpected use case format", SafeArg.of("useCase", useCase)); return matcher.group(1); } private  UseCaseUtils(); static String getPaxosUseCasePrefix(String useCase);  }