From 1585f1a487ab6eeb14a1cb79a6dd6f8669c663ac Mon Sep 17 00:00:00 2001 From: Tobias Herbert Date: Thu, 8 Feb 2024 16:36:04 +0100 Subject: [PATCH] refactoring: adjusting test functions to the naming conventions in class StudentTest --- src/test/java/org/example/StudentTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/example/StudentTest.java b/src/test/java/org/example/StudentTest.java index 1985b69..7ac62f4 100644 --- a/src/test/java/org/example/StudentTest.java +++ b/src/test/java/org/example/StudentTest.java @@ -30,7 +30,7 @@ class StudentTest { private static final Student sampleStudent = new Student("Sebastian Reichard", "S1001", "Student"); @org.junit.jupiter.api.Test - void writeToFile() throws IOException { + void testWriteToFile() throws IOException { Student student = sampleStudent; // String filename = "testStudentData.txt"; @@ -46,7 +46,7 @@ class StudentTest { } @Test - void readFromFile() throws IOException { + void testReadFromFile() throws IOException { try (PrintWriter writer = new PrintWriter(new FileWriter("testStudentData.txt"))){ writer.println("Sebastian Reichard");