diff options
| author | Szymon Szukalski <szymon@skas.io> | 2024-07-24 17:31:54 +1000 |
|---|---|---|
| committer | Szymon Szukalski <szymon@skas.io> | 2024-07-24 17:31:54 +1000 |
| commit | c459e7d5abd66d7bcf38e151aa2632fcb139f4f5 (patch) | |
| tree | 2f19d20ed0cf9566eb4390f01ebf4d2be7fd6657 /src/main/java/com/stileeducation/markr/entity | |
| parent | f08b2fa7e6a977a18d6b9f14fb73c18ec73ec5df (diff) | |
Use Apache Commons Math for calculations and implement service tests
Implement TestResultService tests and supporting entity builders.
Switch to Apache Commons Math library for descriptive statistics.
Diffstat (limited to 'src/main/java/com/stileeducation/markr/entity')
| -rw-r--r-- | src/main/java/com/stileeducation/markr/entity/TestResult.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/stileeducation/markr/entity/TestResult.java b/src/main/java/com/stileeducation/markr/entity/TestResult.java index cb7cea5..0d68f62 100644 --- a/src/main/java/com/stileeducation/markr/entity/TestResult.java +++ b/src/main/java/com/stileeducation/markr/entity/TestResult.java @@ -8,6 +8,16 @@ import java.util.Objects; @Table(name = "test_results") public class TestResult { + public TestResult() { + } + + public TestResult(Long id, Student student, Test test, Integer marksAwarded) { + this.id = id; + this.student = student; + this.test = test; + this.marksAwarded = marksAwarded; + } + @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; |
