Search in sources :

Example 1 with DistroXDatabaseAvailabilityType

use of com.sequenceiq.distrox.api.v1.distrox.model.database.DistroXDatabaseAvailabilityType in project cloudbreak by hortonworks.

the class DistroXDatabaseRequestToStackDatabaseRequestConverterTest method convert.

@ParameterizedTest
@EnumSource(DistroXDatabaseAvailabilityType.class)
void convert(DistroXDatabaseAvailabilityType daType) {
    DistroXDatabaseRequest source = new DistroXDatabaseRequest();
    source.setAvailabilityType(daType);
    DatabaseRequest result = underTest.convert(source);
    assertThat(result.getAvailabilityType().name()).isEqualTo(daType.name());
}
Also used : DistroXDatabaseRequest(com.sequenceiq.distrox.api.v1.distrox.model.database.DistroXDatabaseRequest) DatabaseRequest(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.database.DatabaseRequest) DistroXDatabaseRequest(com.sequenceiq.distrox.api.v1.distrox.model.database.DistroXDatabaseRequest) EnumSource(org.junit.jupiter.params.provider.EnumSource) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

DatabaseRequest (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.database.DatabaseRequest)1 DistroXDatabaseRequest (com.sequenceiq.distrox.api.v1.distrox.model.database.DistroXDatabaseRequest)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 EnumSource (org.junit.jupiter.params.provider.EnumSource)1