Skip to content
Snippets Groups Projects
Commit 29c349cc authored by jez04's avatar jez04
Browse files

fix: unit test fix

parent e0dfa6aa
Branches
No related merge requests found
...@@ -30,7 +30,7 @@ class ClassStructureTest { ...@@ -30,7 +30,7 @@ class ClassStructureTest {
private static String className = "Score"; private static String className = "Score";
@BeforeAll @BeforeAll
void printClassNames() { static void printClassNames() {
for (String className : helper.getNameOfAllClasses()) { for (String className : helper.getNameOfAllClasses()) {
System.out.println(className); System.out.println(className);
} }
...@@ -66,6 +66,7 @@ class ClassStructureTest { ...@@ -66,6 +66,7 @@ class ClassStructureTest {
.size() > 1); .size() > 1);
} }
@Test
void loadScoresFromStreamExceptionTest() throws Exception, IllegalAccessException, InvocationTargetException, void loadScoresFromStreamExceptionTest() throws Exception, IllegalAccessException, InvocationTargetException,
NoSuchMethodException, SecurityException { NoSuchMethodException, SecurityException {
App app = new App(); App app = new App();
...@@ -155,6 +156,7 @@ class ClassStructureTest { ...@@ -155,6 +156,7 @@ class ClassStructureTest {
} }
} }
@Test
void saveScoresTest() throws IOException, NoSuchMethodException, SecurityException, InstantiationException, void saveScoresTest() throws IOException, NoSuchMethodException, SecurityException, InstantiationException,
IllegalAccessException, IllegalArgumentException, InvocationTargetException { IllegalAccessException, IllegalArgumentException, InvocationTargetException {
App app = new App(); App app = new App();
...@@ -169,6 +171,7 @@ class ClassStructureTest { ...@@ -169,6 +171,7 @@ class ClassStructureTest {
return (Score) constructor.newInstance(name, points); return (Score) constructor.newInstance(name, points);
} }
@Test
void saveScoresDirsTest() throws IOException, NoSuchMethodException, SecurityException, InstantiationException, void saveScoresDirsTest() throws IOException, NoSuchMethodException, SecurityException, InstantiationException,
IllegalAccessException, IllegalArgumentException, InvocationTargetException { IllegalAccessException, IllegalArgumentException, InvocationTargetException {
App app = new App(); App app = new App();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment