diff options
Diffstat (limited to 'src/test/java/com/stileeducation/markr/dto')
| -rw-r--r-- | src/test/java/com/stileeducation/markr/dto/MCQTestResultsDTOTests.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/com/stileeducation/markr/dto/MCQTestResultsDTOTests.java b/src/test/java/com/stileeducation/markr/dto/MCQTestResultsDTOTests.java index cc0f248..cceec51 100644 --- a/src/test/java/com/stileeducation/markr/dto/MCQTestResultsDTOTests.java +++ b/src/test/java/com/stileeducation/markr/dto/MCQTestResultsDTOTests.java @@ -1,5 +1,6 @@ package com.stileeducation.markr.dto; +import com.stileeducation.markr.MarkrApplication; import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.Unmarshaller; @@ -7,13 +8,15 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.core.io.ClassPathResource; +import org.springframework.test.context.ActiveProfiles; import java.io.IOException; import java.io.InputStream; import static org.assertj.core.api.Assertions.assertThat; -@SpringBootTest +@SpringBootTest(classes = MarkrApplication.class) +@ActiveProfiles("test") public class MCQTestResultsDTOTests { private static MCQTestResultsDTO sampleResults; |
