This commit is contained in:
anhefti 2019-02-02 21:03:54 +01:00
parent 0e97d1363a
commit 8bad2af97d
2 changed files with 13 additions and 2 deletions

View file

@ -153,8 +153,8 @@
<include>ch/ethz/seb/sebserver/*</include>
</includes>
<excludes>
<exclude>ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper</exclude>
<exclude>ch/ethz/seb/sebserver/webservice/datalayer/batis/model</exclude>
<exclude>ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/*</exclude>
<exclude>ch/ethz/seb/sebserver/webservice/datalayer/batis/model/*</exclude>
</excludes>
</configuration>
<executions>

View file

@ -92,6 +92,17 @@ public class InstitutionAPITest extends AdministrationAPIIntegrationTester {
assertNotNull(errorMessage);
assertTrue(errorMessage.size() > 0);
assertEquals("1001", errorMessage.get(0).messageCode);
// get own institution
final Institution own = new RestAPITestHelper()
.withAccessToken(getAdminInstitution1Access())
.withPath(SEBServerRestEndpoints.ENDPOINT_INSTITUTION + "/self")
.withExpectedStatus(HttpStatus.OK)
.getAsObject(new TypeReference<Institution>() {
});
assertNotNull(own);
assertTrue(own.id.longValue() == 1);
}
@Test