@Test public void capitalize_capture_unused_behavior() throws Exception { assertThat(FieldNameValidator.capitalize(FieldName.of("my-variant"))).isEqualTo("My-variant"); assertThat(FieldNameValidator.capitalize(FieldName.of("my_variant"))).isEqualTo("My_variant"); }
public static String capitalize(FieldName fieldName) { return StringUtils.capitalize(fieldName.get()); }
FieldNameValidator { public static String capitalize(FieldName fieldName) { return StringUtils.capitalize(fieldName.get()); } }
FieldNameValidator { public static String capitalize(FieldName fieldName) { return StringUtils.capitalize(fieldName.get()); } private  FieldNameValidator(); }
FieldNameValidator { public static String capitalize(FieldName fieldName) { return StringUtils.capitalize(fieldName.get()); } private  FieldNameValidator(); static String capitalize(FieldName fieldName); static FieldName toCase(FieldName fieldName, CaseConverter.Case targetCase); @SuppressWarnings("Slf4jLogsafeArgs") static void validate(FieldName fieldName); }
FieldNameValidator { public static String capitalize(FieldName fieldName) { return StringUtils.capitalize(fieldName.get()); } private  FieldNameValidator(); static String capitalize(FieldName fieldName); static FieldName toCase(FieldName fieldName, CaseConverter.Case targetCase); @SuppressWarnings("Slf4jLogsafeArgs") static void validate(FieldName fieldName);  }