Refactored AllSEASONS to ALLSEASONS and added tests

This commit is contained in:
Elias Csomor
2022-11-26 14:29:49 +01:00
parent 560cea2ff9
commit e75ececedb
3 changed files with 41 additions and 3 deletions
@@ -233,11 +233,11 @@ public class PlantsController {
RadioButton radioButton = new RadioButton(season.getName());
radioButton.setToggleGroup(seasonGroup);
radioButton.setPadding(new Insets(0, 0, 10, 0));
if (season.equals(Seasons.AllSEASONS)) {
if (season.equals(Seasons.ALLSEASONS)) {
radioButton.setSelected(true);
}
radioButton.selectedProperty().addListener((observable, oldValue, newValue) -> {
if (season.equals(Seasons.AllSEASONS)) {
if (season.equals(Seasons.ALLSEASONS)) {
fillPlantListWithHardinessZone();
} else {
try {