Search in sources :

Example 1 with GetRuntimeInformationResult

use of org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationResult 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();
}
Also used : GetRuntimeInformationRequest(org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationRequest) GetRuntimeInformationResult(org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationResult) AbstractIntegrationTest(org.haiku.haikudepotserver.AbstractIntegrationTest) Test(org.junit.jupiter.api.Test)

Example 2 with GetRuntimeInformationResult

use of org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationResult 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());
}
Also used : GetRuntimeInformationRequest(org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationRequest) GetRuntimeInformationResult(org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationResult) AbstractIntegrationTest(org.haiku.haikudepotserver.AbstractIntegrationTest) Test(org.junit.jupiter.api.Test)

Aggregations

AbstractIntegrationTest (org.haiku.haikudepotserver.AbstractIntegrationTest)2 GetRuntimeInformationRequest (org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationRequest)2 GetRuntimeInformationResult (org.haiku.haikudepotserver.api1.model.miscellaneous.GetRuntimeInformationResult)2 Test (org.junit.jupiter.api.Test)2