use of org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationRequest in project haikudepotserver by haiku.
the class MiscelaneousApiIT method getRuntimeInformation_asUnauthenticated.
@Test
public void getRuntimeInformation_asUnauthenticated() {
// ------------------------------------
GetRuntimeInformationResult result = miscellaneousApi.getRuntimeInformation(new GetRuntimeInformationRequest());
// ------------------------------------
Assertions.assertThat(result.javaVersion).isNull();
}
use of org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationRequest in project haikudepotserver by haiku.
the class MiscelaneousApiIT method getRuntimeInformation_asRoot.
@Test
public void getRuntimeInformation_asRoot() {
setAuthenticatedUserToRoot();
// ------------------------------------
GetRuntimeInformationResult result = miscellaneousApi.getRuntimeInformation(new GetRuntimeInformationRequest());
// ------------------------------------
Assertions.assertThat(result.javaVersion).isEqualTo(runtimeInformationService.getJavaVersion());
}
Aggregations