From 29c349cca30dd424fcb11fc715ad1157f4a27643 Mon Sep 17 00:00:00 2001 From: jez04 <david.jezek@post.cz> Date: Wed, 13 Nov 2024 23:32:24 +0100 Subject: [PATCH] fix: unit test fix --- src/test/java/jez04/structure/test/ClassStructureTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/java/jez04/structure/test/ClassStructureTest.java b/src/test/java/jez04/structure/test/ClassStructureTest.java index 0e3694d..8454102 100644 --- a/src/test/java/jez04/structure/test/ClassStructureTest.java +++ b/src/test/java/jez04/structure/test/ClassStructureTest.java @@ -30,7 +30,7 @@ class ClassStructureTest { private static String className = "Score"; @BeforeAll - void printClassNames() { + static void printClassNames() { for (String className : helper.getNameOfAllClasses()) { System.out.println(className); } @@ -66,6 +66,7 @@ class ClassStructureTest { .size() > 1); } + @Test void loadScoresFromStreamExceptionTest() throws Exception, IllegalAccessException, InvocationTargetException, NoSuchMethodException, SecurityException { App app = new App(); @@ -155,6 +156,7 @@ class ClassStructureTest { } } + @Test void saveScoresTest() throws IOException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { App app = new App(); @@ -169,6 +171,7 @@ class ClassStructureTest { return (Score) constructor.newInstance(name, points); } + @Test void saveScoresDirsTest() throws IOException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { App app = new App(); -- GitLab