summaryrefslogtreecommitdiff
path: root/src/test/java/com/stileeducation/markr/util/StudentBuilder.java
diff options
context:
space:
mode:
authorSzymon Szukalski <szymon@skas.io>2024-07-26 15:16:26 +1000
committerSzymon Szukalski <szymon@skas.io>2024-07-26 15:16:26 +1000
commite11138e2b39e07537d836d9a51e3926a78c8b870 (patch)
tree215e27a9206bc10fbeb5db4b73f8e92acc4fbf84 /src/test/java/com/stileeducation/markr/util/StudentBuilder.java
parent3ac208066db6d11e1a8cc1f6174c6d86b5ac603b (diff)
parentb59d2f0c722d2e21194ed8d66a17be8128ba7b39 (diff)
Merge branch 'caching-issue'
Diffstat (limited to 'src/test/java/com/stileeducation/markr/util/StudentBuilder.java')
-rw-r--r--src/test/java/com/stileeducation/markr/util/StudentBuilder.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/test/java/com/stileeducation/markr/util/StudentBuilder.java b/src/test/java/com/stileeducation/markr/util/StudentBuilder.java
index 5189f19..897d84a 100644
--- a/src/test/java/com/stileeducation/markr/util/StudentBuilder.java
+++ b/src/test/java/com/stileeducation/markr/util/StudentBuilder.java
@@ -1,17 +1,13 @@
package com.stileeducation.markr.util;
import com.stileeducation.markr.entity.Student;
-import com.stileeducation.markr.entity.TestResult;
-
-import java.util.HashSet;
-import java.util.Set;
public class StudentBuilder {
private Long id;
private String firstName;
private String lastName;
private String studentNumber;
- private Set<TestResult> testResults = new HashSet<>();
+
public StudentBuilder withId(Long id) {
this.id = id;
@@ -33,18 +29,12 @@ public class StudentBuilder {
return this;
}
- public StudentBuilder withTestResults(Set<TestResult> testResults) {
- this.testResults = testResults;
- return this;
- }
-
public Student build() {
Student student = new Student();
student.setId(id);
student.setFirstName(firstName);
student.setLastName(lastName);
student.setStudentNumber(studentNumber);
- student.setTestResults(testResults);
return student;
}
} \ No newline at end of file