@Test public void should_generate_enum_compatible_names() { assertThat(EnumConstants.constantName("camelCaseName")).isEqualTo("CAMEL_CASE_NAME"); assertThat(EnumConstants.constantName("space name")).isEqualTo("SPACE_NAME"); assertThat(EnumConstants.constantName("lowercase")).isEqualTo("LOWERCASE"); }
public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); }
EnumConstants { public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); } }
EnumConstants { public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); }  }
EnumConstants { public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); }  static String constantName(String name); }
EnumConstants { public static String constantName(String name) { return UPPER_CAMEL .to(UPPER_UNDERSCORE, name) .replace(' ', '_') .replace('-', '_'); }  static String constantName(String name);  }