Skip to content

Commit

Permalink
ci: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Nov 6, 2024
1 parent 164055c commit ef9032c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ public String supportedType() {
return S3BucketSchema.TYPE;
}

@Override
public boolean canHandle(DataFlowStartMessage request) {
return S3BucketSchema.TYPE.equals(request.getDestinationDataAddress().getType());
}

@Override
public DataSink createSink(DataFlowStartMessage request) {
var validationResult = validateRequest(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ public String supportedType() {
return S3BucketSchema.TYPE;
}

@Override
public boolean canHandle(DataFlowStartMessage request) {
return S3BucketSchema.TYPE.equals(request.getSourceDataAddress().getType());
}

@Override
public DataSource createSource(DataFlowStartMessage request) {
var validationResult = validateRequest(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,6 @@ class S3DataSinkFactoryTest {
private final S3DataSinkFactory factory = new S3DataSinkFactory(clientProvider, mock(), mock(),
vault, typeManager.getMapper(), 1024, validator);

@Test
void canHandle_returnsTrueWhenExpectedType() {
var dataAddress = DataAddress.Builder.newInstance().type(S3BucketSchema.TYPE).build();

var result = factory.canHandle(createRequest(dataAddress));

assertThat(result).isTrue();
}

@Test
void canHandle_returnsFalseWhenUnexpectedType() {
var dataAddress = DataAddress.Builder.newInstance().type("any").build();

var result = factory.canHandle(createRequest(dataAddress));

assertThat(result).isFalse();
}

@Test
void validate_shouldSucceed_whenValidatorSucceeds() {
when(validator.validateDestination(any())).thenReturn(ValidationResult.success());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,6 @@ class S3DataSourceFactoryTest {
private final S3DataSourceFactory factory = new S3DataSourceFactory(clientProvider, mock(),
vault, typeManager.getMapper(), validator);

@Test
void canHandle_returnsTrueWhenExpectedType() {
var dataAddress = DataAddress.Builder.newInstance().type(S3BucketSchema.TYPE).build();

var result = factory.canHandle(createRequest(dataAddress));

assertThat(result).isTrue();
}

@Test
void canHandle_returnsFalseWhenUnexpectedType() {
var dataAddress = DataAddress.Builder.newInstance().type("any").build();

var result = factory.canHandle(createRequest(dataAddress));

assertThat(result).isFalse();
}

@Test
void validate_shouldSucceed_whenValidatorSucceeds() {
when(validator.validateSource(any())).thenReturn(ValidationResult.success());
Expand Down

0 comments on commit ef9032c

Please sign in to comment.