From a2405ee445903a50045b6657b5749e70966e6305 Mon Sep 17 00:00:00 2001
From: Andreas Svanberg <andreass@dsv.su.se>
Date: Thu, 28 Nov 2024 12:26:06 +0100
Subject: [PATCH] Fix PeerReviewServiceImplIntegrationTest

It previously did not populate all the required attributes that were checked using NOT NULL constraints in the migration scripts but were not present in the Hibernate generated DDL for HSQLDB.
---
 .../dsv/scipro/peer/PeerReviewServiceImplIntegrationTest.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/test/java/se/su/dsv/scipro/peer/PeerReviewServiceImplIntegrationTest.java b/core/src/test/java/se/su/dsv/scipro/peer/PeerReviewServiceImplIntegrationTest.java
index 15a004fd89..a954f455be 100644
--- a/core/src/test/java/se/su/dsv/scipro/peer/PeerReviewServiceImplIntegrationTest.java
+++ b/core/src/test/java/se/su/dsv/scipro/peer/PeerReviewServiceImplIntegrationTest.java
@@ -14,6 +14,7 @@ import se.su.dsv.scipro.file.FileDescription;
 import se.su.dsv.scipro.file.FileReference;
 import se.su.dsv.scipro.project.Project;
 import se.su.dsv.scipro.system.DegreeType;
+import se.su.dsv.scipro.system.Language;
 import se.su.dsv.scipro.system.PageRequest;
 import se.su.dsv.scipro.system.ProjectType;
 import se.su.dsv.scipro.system.User;
@@ -102,6 +103,7 @@ public class PeerReviewServiceImplIntegrationTest extends IntegrationTest {
         PeerRequest peerRequest = new PeerRequest();
         peerRequest.setProject(createProject());
         peerRequest.setRequester(createUser());
+        peerRequest.setLanguage(Language.ENGLISH);
         final FileDescription fileDescription = save(new FileDescription());
         final FileReference fileReference = new FileReference();
         fileReference.setFileDescription(fileDescription);