Search in sources :

Example 1 with GetAllArchitecturesResult

use of org.haiku.haikudepotserver.api1.model.miscellaneous.GetAllArchitecturesResult in project haikudepotserver by haiku.

the class MiscelaneousApiIT method testGetAllArchitectures.

@Test
public void testGetAllArchitectures() {
    // ------------------------------------
    GetAllArchitecturesResult result = miscellaneousApi.getAllArchitectures(new GetAllArchitecturesRequest());
    // ------------------------------------
    // not sure what architectures there may be in the future, but
    // we will just check for a couple that we know to be there.
    Assertions.assertThat(isPresent(result, "x86_64").isPresent()).isTrue();
    Assertions.assertThat(isPresent(result, "x86_gcc2").isPresent()).isTrue();
    Assertions.assertThat(isPresent(result, "x86").isPresent()).isFalse();
    Assertions.assertThat(isPresent(result, "mips").isPresent()).isFalse();
}
Also used : GetAllArchitecturesRequest(org.haiku.haikudepotserver.api1.model.miscellaneous.GetAllArchitecturesRequest) GetAllArchitecturesResult(org.haiku.haikudepotserver.api1.model.miscellaneous.GetAllArchitecturesResult) AbstractIntegrationTest(org.haiku.haikudepotserver.AbstractIntegrationTest) Test(org.junit.jupiter.api.Test)

Aggregations

AbstractIntegrationTest (org.haiku.haikudepotserver.AbstractIntegrationTest)1 GetAllArchitecturesRequest (org.haiku.haikudepotserver.api1.model.miscellaneous.GetAllArchitecturesRequest)1 GetAllArchitecturesResult (org.haiku.haikudepotserver.api1.model.miscellaneous.GetAllArchitecturesResult)1 Test (org.junit.jupiter.api.Test)1