fix tests
This commit is contained in:
parent
d1c6d8d7be
commit
73a94fcc7c
2 changed files with 5 additions and 4 deletions
|
@ -43,7 +43,7 @@ import ch.ethz.seb.sebserver.webservice.servicelayer.dao.WebserviceInfoDAO;
|
||||||
@SpringBootTest(
|
@SpringBootTest(
|
||||||
properties = "file.encoding=UTF-8",
|
properties = "file.encoding=UTF-8",
|
||||||
classes = SEBServer.class,
|
classes = SEBServer.class,
|
||||||
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
|
||||||
@ActiveProfiles("test")
|
@ActiveProfiles("test")
|
||||||
@AutoConfigureMockMvc
|
@AutoConfigureMockMvc
|
||||||
public abstract class GuiIntegrationTest {
|
public abstract class GuiIntegrationTest {
|
||||||
|
|
|
@ -768,8 +768,9 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
|
||||||
final QuizData quizData = quizzes.content.get(0);
|
final QuizData quizData = quizzes.content.get(0);
|
||||||
assertNotNull(quizData);
|
assertNotNull(quizData);
|
||||||
assertEquals("Demo Quiz 1 (MOCKUP)", quizData.name);
|
assertEquals("Demo Quiz 1 (MOCKUP)", quizData.name);
|
||||||
assertEquals(quizData.institutionId, Long.valueOf(4));
|
assertEquals(Long.valueOf(1), quizData.lmsSetupId);
|
||||||
assertEquals(quizData.lmsSetupId, Long.valueOf(1));
|
assertEquals(Long.valueOf(4), quizData.institutionId);
|
||||||
|
|
||||||
// import quiz as exam
|
// import quiz as exam
|
||||||
final Result<Exam> newExamResult = restService
|
final Result<Exam> newExamResult = restService
|
||||||
.getBuilder(ImportAsExam.class)
|
.getBuilder(ImportAsExam.class)
|
||||||
|
@ -2555,7 +2556,7 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
|
||||||
.getOrThrow();
|
.getOrThrow();
|
||||||
|
|
||||||
assertNotNull(testResult);
|
assertNotNull(testResult);
|
||||||
System.out.print("********************** testResult: " + testResult);
|
// System.out.print("********************** testResult: " + testResult);
|
||||||
// assertFalse(testResult.isOk());
|
// assertFalse(testResult.isOk());
|
||||||
// assertEquals("[Error [errorType=TOKEN_REQUEST, message=Failed to gain access token from OpenEdX Rest API:\n" +
|
// assertEquals("[Error [errorType=TOKEN_REQUEST, message=Failed to gain access token from OpenEdX Rest API:\n" +
|
||||||
// " tried token endpoints: [/oauth2/access_token]]]", String.valueOf(testResult.errors));
|
// " tried token endpoints: [/oauth2/access_token]]]", String.valueOf(testResult.errors));
|
||||||
|
|
Loading…
Reference in a new issue