@Test public void testAllEanbled_01(){ BuildState state = new BuildState(); assertFalse(state.allEnabled()); }
public boolean allEnabled() { boolean areAllEnbled = true; for (Map.Entry<BuildStateEnum,BuildStateInterface> state : states.entrySet()){ if (state.getKey().equals(BUILD_BROKEN)){ if (state.getValue().isEnabled()){ return false; } continue; } if (state.getKey().equals(BUILD_FIXED)){ if (state.getValue().isEnabled()){ return false; } continue; } areAllEnbled = areAllEnbled && state.getValue().isEnabled(); } return areAllEnbled; }
BuildState { public boolean allEnabled() { boolean areAllEnbled = true; for (Map.Entry<BuildStateEnum,BuildStateInterface> state : states.entrySet()){ if (state.getKey().equals(BUILD_BROKEN)){ if (state.getValue().isEnabled()){ return false; } continue; } if (state.getKey().equals(BUILD_FIXED)){ if (state.getValue().isEnabled()){ return false; } continue; } areAllEnbled = areAllEnbled && state.getValue().isEnabled(); } return areAllEnbled; } }
BuildState { public boolean allEnabled() { boolean areAllEnbled = true; for (Map.Entry<BuildStateEnum,BuildStateInterface> state : states.entrySet()){ if (state.getKey().equals(BUILD_BROKEN)){ if (state.getValue().isEnabled()){ return false; } continue; } if (state.getKey().equals(BUILD_FIXED)){ if (state.getValue().isEnabled()){ return false; } continue; } areAllEnbled = areAllEnbled && state.getValue().isEnabled(); } return areAllEnbled; } BuildState(); }
BuildState { public boolean allEnabled() { boolean areAllEnbled = true; for (Map.Entry<BuildStateEnum,BuildStateInterface> state : states.entrySet()){ if (state.getKey().equals(BUILD_BROKEN)){ if (state.getValue().isEnabled()){ return false; } continue; } if (state.getKey().equals(BUILD_FIXED)){ if (state.getValue().isEnabled()){ return false; } continue; } areAllEnbled = areAllEnbled && state.getValue().isEnabled(); } return areAllEnbled; } BuildState(); Set<BuildStateEnum> getStateSet(); boolean enabled(BuildStateEnum currentBuildState); boolean enabled(BuildStateEnum currentBuildState, boolean success, boolean changed); static BuildStateEnum getEffectiveState(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 boolean allEnabled() { boolean areAllEnbled = true; for (Map.Entry<BuildStateEnum,BuildStateInterface> state : states.entrySet()){ if (state.getKey().equals(BUILD_BROKEN)){ if (state.getValue().isEnabled()){ return false; } continue; } if (state.getKey().equals(BUILD_FIXED)){ if (state.getValue().isEnabled()){ return false; } continue; } areAllEnbled = areAllEnbled && state.getValue().isEnabled(); } return areAllEnbled; } BuildState(); Set<BuildStateEnum> getStateSet(); boolean enabled(BuildStateEnum currentBuildState); boolean enabled(BuildStateEnum currentBuildState, boolean success, boolean changed); static BuildStateEnum getEffectiveState(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();  }