Search in sources :

Example 6 with DatabaseResponse

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.database.DatabaseResponse in project cloudbreak by hortonworks.

the class DatabaseAvailabilityTypeToDatabaseResponseConverterTest method convert.

@ParameterizedTest
@EnumSource(DatabaseAvailabilityType.class)
void convert(DatabaseAvailabilityType source) {
    DatabaseResponse result = underTest.convert(source);
    result.getAvailabilityType().equals(source);
}
Also used : DatabaseResponse(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.database.DatabaseResponse) EnumSource(org.junit.jupiter.params.provider.EnumSource) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Example 7 with DatabaseResponse

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.database.DatabaseResponse in project cloudbreak by hortonworks.

the class DatabaseAvailabilityTypeToDatabaseResponseConverter method convert.

public DatabaseResponse convert(DatabaseAvailabilityType source) {
    DatabaseResponse response = new DatabaseResponse();
    response.setAvailabilityType(source);
    return response;
}
Also used : DatabaseResponse(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.database.DatabaseResponse)

Aggregations

DatabaseResponse (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.database.DatabaseResponse)7 CloudbreakDetailsV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.CloudbreakDetailsV4Response)3 PlacementSettingsV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.PlacementSettingsV4Response)3 StackV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.StackV4Response)3 StackAuthenticationV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.authentication.StackAuthenticationV4Response)3 CustomDomainSettingsV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.customdomain.CustomDomainSettingsV4Response)3 StackImageV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.image.StackImageV4Response)3 InstanceGroupV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.instancegroup.InstanceGroupV4Response)3 NetworkV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.network.NetworkV4Response)3 WorkspaceResourceV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.workspace.responses.WorkspaceResourceV4Response)3 Image (com.sequenceiq.cloudbreak.cloud.model.Image)3 AbstractEntityConverterTest (com.sequenceiq.cloudbreak.converter.AbstractEntityConverterTest)3 Stack (com.sequenceiq.cloudbreak.domain.stack.Stack)3 TelemetryResponse (com.sequenceiq.common.api.telemetry.response.TelemetryResponse)3 Test (org.junit.Test)3 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)2 EnumSource (org.junit.jupiter.params.provider.EnumSource)2 ClusterV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.ClusterV4Response)1 StackAuthentication (com.sequenceiq.cloudbreak.domain.StackAuthentication)1 LoadBalancer (com.sequenceiq.cloudbreak.domain.stack.loadbalancer.LoadBalancer)1