diff options
| author | WillemDalton <willemhdalton@gmail.com> | 2025-11-16 11:35:03 -0500 |
|---|---|---|
| committer | WillemDalton <willemhdalton@gmail.com> | 2025-11-16 11:35:03 -0500 |
| commit | cb2dc06a6de07bc7d6a61f98c349ec92cb0a2f92 (patch) | |
| tree | 6d6420b55ec37ecf9a1572b888a467de27615753 /src/test/java/design/model/GolferTest.java | |
| parent | a667071453840878eb9dba07c5fd96559f79ca57 (diff) | |
| download | designproject-design-6-main.tar.gz designproject-design-6-main.tar.bz2 designproject-design-6-main.zip | |
Diffstat (limited to 'src/test/java/design/model/GolferTest.java')
| -rw-r--r-- | src/test/java/design/model/GolferTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
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<Golfer> constructor = Golfer.class.getDeclaredConstructor(String.class, int.class, String.class, List.class, List.class, List.class); + Constructor<Golfer> 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); } |
