@Test public void testGetShortName() { BuildState state = new BuildState(); String shortname1 = BuildStateEnum.BUILD_SUCCESSFUL.getShortName(); String shortname2 = state.getShortName(BuildStateEnum.BUILD_SUCCESSFUL); assertTrue(shortname1.equals(shortname2)); }
public String getShortName(BuildStateEnum state) { return state.getShortName(); }
BuildState { public String getShortName(BuildStateEnum state) { return state.getShortName(); } }
BuildState { public String getShortName(BuildStateEnum state) { return state.getShortName(); } BuildState(); }
BuildState { public String getShortName(BuildStateEnum state) { return state.getShortName(); } BuildState(); Set<BuildStateEnum> getStateSet(); boolean enabled(BuildStateEnum currentBuildState); boolean enabled(BuildStateEnum currentBuildState, boolean success, boolean changed); void setEnabled(BuildStateEnum currentBuildState, boolean enabled); BuildState setAllEnabled(); void enable(BuildStateEnum currentBuildState); void disable(BuildStateEnum currentBuildState); String getShortName(BuildStateEnum state); String getDescriptionSuffix(BuildStateEnum state); boolean allEnabled(); boolean noneEnabled(); }
BuildState { public String getShortName(BuildStateEnum state) { return state.getShortName(); } BuildState(); Set<BuildStateEnum> getStateSet(); boolean enabled(BuildStateEnum currentBuildState); boolean enabled(BuildStateEnum currentBuildState, boolean success, boolean changed); void setEnabled(BuildStateEnum currentBuildState, boolean enabled); BuildState setAllEnabled(); void enable(BuildStateEnum currentBuildState); void disable(BuildStateEnum currentBuildState); String getShortName(BuildStateEnum state); String getDescriptionSuffix(BuildStateEnum state); boolean allEnabled(); boolean noneEnabled();  }