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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/java/design/model/GolferTest.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); } -- cgit v1.2.3