From cb2dc06a6de07bc7d6a61f98c349ec92cb0a2f92 Mon Sep 17 00:00:00 2001 From: WillemDalton Date: Sun, 16 Nov 2025 11:35:03 -0500 Subject: fixed golfer error with new parameter --- src/test/java/design/model/GolferTest.java | 4 ++-- src/test/java/design/model/holeplay/HolePlayContextTest.java | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/test/java') diff --git a/src/test/java/design/model/GolferTest.java b/src/test/java/design/model/GolferTest.java index 98dad20..9e7f812 100644 --- a/src/test/java/design/model/GolferTest.java +++ b/src/test/java/design/model/GolferTest.java @@ -36,10 +36,10 @@ public class GolferTest { @Test void testPrivateConstructor() throws Exception { - Constructor constructor = Golfer.class.getDeclaredConstructor(String.class, int.class, String.class, List.class, List.class, List.class); + Constructor constructor = Golfer.class.getDeclaredConstructor(String.class, int.class, String.class, List.class, List.class, List.class, List.class, Team.class); assertTrue(Modifier.isPrivate(constructor.getModifiers())); constructor.setAccessible(true); - Golfer testGolfer = constructor.newInstance("testUser", 12345, "Test Golfer", new ArrayList<>(), new ArrayList<>(), new ArrayList<>()); + Golfer testGolfer = constructor.newInstance("testUser", 12345, "Test Golfer", new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), new Team(null, null)); assertNotNull(testGolfer); } diff --git a/src/test/java/design/model/holeplay/HolePlayContextTest.java b/src/test/java/design/model/holeplay/HolePlayContextTest.java index c2ca619..a45dccd 100644 --- a/src/test/java/design/model/holeplay/HolePlayContextTest.java +++ b/src/test/java/design/model/holeplay/HolePlayContextTest.java @@ -5,7 +5,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; -import java.util.Date; import java.time.LocalDateTime; import java.util.ArrayList; -- cgit v1.2.3