From 67e4a984a47bb85bcc1593654f4c8d7651cefb05 Mon Sep 17 00:00:00 2001 From: daniquemont <44334393+daniquemont@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:27:24 +0200 Subject: [PATCH] Update FlagFactory.java added country luxembourg as a test --- .../eu/sig/training/ch03-complexity/flags/FlagFactory.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/training-assignments/src/java/eu/sig/training/ch03-complexity/flags/FlagFactory.java b/training-assignments/src/java/eu/sig/training/ch03-complexity/flags/FlagFactory.java index a9d51c0..757c241 100755 --- a/training-assignments/src/java/eu/sig/training/ch03-complexity/flags/FlagFactory.java +++ b/training-assignments/src/java/eu/sig/training/ch03-complexity/flags/FlagFactory.java @@ -40,6 +40,9 @@ public List getFlagColors(Nationality nationality) { case RUSSIA: result = Arrays.asList(Color.WHITE, Color.BLUE, Color.RED); break; + case LUXEMBOURG: + result = Arrays.asList(Color.RED, Color.BLUE, Color.LIGHTBLUE); + break; case UNCLASSIFIED: default: result = Arrays.asList(Color.GRAY); @@ -49,4 +52,4 @@ public List getFlagColors(Nationality nationality) { } // end::getFlag[] -} \ No newline at end of file +}