Skip to content

Commit

Permalink
Remove SimpleMethodsIntegTests (#4377)
Browse files Browse the repository at this point in the history
* Remove SimpleMethodsIntegTests

* Fix checkstyle errors
  • Loading branch information
zoewangg committed Aug 31, 2023
1 parent 4cc096a commit 77e7880
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import software.amazon.awssdk.codegen.emitters.GeneratorTaskParams;
import software.amazon.awssdk.codegen.poet.builder.SyncClientBuilderClass;
import software.amazon.awssdk.codegen.poet.builder.SyncClientBuilderInterface;
import software.amazon.awssdk.codegen.poet.client.ClientSimpleMethodsIntegrationTests;
import software.amazon.awssdk.codegen.poet.client.DelegatingSyncClientClass;
import software.amazon.awssdk.codegen.poet.client.SyncClientClass;
import software.amazon.awssdk.codegen.poet.client.SyncClientInterface;
Expand All @@ -48,9 +47,6 @@ protected List<GeneratorTask> createTasks() throws Exception {
tasks.add(createClientBuilderTask());
tasks.add(createClientInterfaceTask());
tasks.add(createClientBuilderInterfaceTask());
if (!model.simpleMethodsRequiringTesting().isEmpty()) {
tasks.add(createClientSimpleMethodsTest());
}
if (model.getEndpointOperation().isPresent()) {
tasks.add(createEndpointDiscoveryCacheLoaderTask());
}
Expand Down Expand Up @@ -80,10 +76,6 @@ private GeneratorTask createClientBuilderInterfaceTask() throws IOException {
return createPoetGeneratorTask(new SyncClientBuilderInterface(model));
}

private GeneratorTask createClientSimpleMethodsTest() throws IOException {
return createPoetGeneratorTestTask(new ClientSimpleMethodsIntegrationTests(model));
}

private GeneratorTask createEndpointDiscoveryCacheLoaderTask() throws IOException {
return createPoetGeneratorTask(new EndpointDiscoveryCacheLoaderGenerator(generatorTaskParams));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
import java.io.UncheckedIOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
import software.amazon.awssdk.awscore.AwsResponse;
import software.amazon.awssdk.awscore.AwsResponseMetadata;
import software.amazon.awssdk.codegen.model.config.customization.CustomizationConfig;
Expand Down Expand Up @@ -273,13 +271,6 @@ private String getResponseMetadataClassName() {
return AwsResponseMetadata.class.getName();
}

@JsonIgnore
public List<OperationModel> simpleMethodsRequiringTesting() {
return getOperations().values().stream()
.filter(v -> v.getInputShape().isSimpleMethod())
.collect(Collectors.toList());
}

public Optional<OperationModel> getEndpointOperation() {
return endpointOperation;
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ public void delegatingSyncClientClass() throws Exception {
assertThat(syncClientDecoratorAbstractClass, generatesTo("test-abstract-sync-client-class.java"));
}

@Test
public void simpleMethodsIntegClass() throws Exception {
ClientSimpleMethodsIntegrationTests simpleMethodsClass = new ClientSimpleMethodsIntegrationTests(
ClientTestModels.restJsonServiceModels());
assertThat(simpleMethodsClass, generatesTo("test-simple-methods-integ-class.java"));
}

@Test
public void syncClientClassRestJson() throws Exception {
SyncClientClass syncClientClass = createSyncClientClass(ClientTestModels.restJsonServiceModels());
Expand Down

This file was deleted.

0 comments on commit 77e7880

Please sign in to comment.