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 {
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();
......
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