From c459e7d5abd66d7bcf38e151aa2632fcb139f4f5 Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Wed, 24 Jul 2024 17:31:54 +1000 Subject: 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. --- src/main/java/com/stileeducation/markr/entity/TestResult.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/java/com/stileeducation/markr/entity') 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; -- cgit v1.2.3