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());
}
Aggregations