fixed tests
This commit is contained in:
parent
f38067fdc5
commit
3fee5dc0a6
1 changed files with 5 additions and 3 deletions
|
@ -573,7 +573,7 @@ public class SebConnectionTest extends ExamAPIIntegrationTester {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Sql(scripts = { "classpath:schema-test.sql", "classpath:data-test.sql", "classpath:data-test-additional.sql" })
|
@Sql(scripts = { "classpath:schema-test.sql", "classpath:data-test.sql", "classpath:data-test-additional.sql" })
|
||||||
public void testSendEventToNoneEstablishedConnectionLeadsToError() throws Exception {
|
public void testSendEventToNoneEstablishedConnectionShouldBePossible() throws Exception {
|
||||||
final String accessToken = super.obtainAccessToken("test", "test", "SEBClient");
|
final String accessToken = super.obtainAccessToken("test", "test", "SEBClient");
|
||||||
assertNotNull(accessToken);
|
assertNotNull(accessToken);
|
||||||
|
|
||||||
|
@ -591,13 +591,15 @@ public class SebConnectionTest extends ExamAPIIntegrationTester {
|
||||||
100.0,
|
100.0,
|
||||||
"testEvent1");
|
"testEvent1");
|
||||||
// check correct response
|
// check correct response
|
||||||
assertTrue(HttpStatus.OK.value() != sendEvent.getStatus());
|
assertTrue(HttpStatus.OK.value() == sendEvent.getStatus());
|
||||||
|
|
||||||
final List<ClientEventRecord> events = this.clientEventRecordMapper
|
final List<ClientEventRecord> events = this.clientEventRecordMapper
|
||||||
.selectByExample()
|
.selectByExample()
|
||||||
.build()
|
.build()
|
||||||
.execute();
|
.execute();
|
||||||
assertTrue(events.isEmpty());
|
assertFalse(events.isEmpty());
|
||||||
|
final ClientEventRecord clientEventRecord = events.get(0);
|
||||||
|
assertEquals("testEvent1", clientEventRecord.getText());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue