coverage
This commit is contained in:
parent
0e97d1363a
commit
8bad2af97d
2 changed files with 13 additions and 2 deletions
4
pom.xml
4
pom.xml
|
@ -153,8 +153,8 @@
|
||||||
<include>ch/ethz/seb/sebserver/*</include>
|
<include>ch/ethz/seb/sebserver/*</include>
|
||||||
</includes>
|
</includes>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper</exclude>
|
<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/model/*</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
|
|
|
@ -92,6 +92,17 @@ public class InstitutionAPITest extends AdministrationAPIIntegrationTester {
|
||||||
assertNotNull(errorMessage);
|
assertNotNull(errorMessage);
|
||||||
assertTrue(errorMessage.size() > 0);
|
assertTrue(errorMessage.size() > 0);
|
||||||
assertEquals("1001", errorMessage.get(0).messageCode);
|
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
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue