Skip to content

Commit 77e7880

Browse files
authored
Remove SimpleMethodsIntegTests (#4377)
* Remove SimpleMethodsIntegTests * Fix checkstyle errors
1 parent 4cc096a commit 77e7880

File tree

5 files changed

+0
-163
lines changed

5 files changed

+0
-163
lines changed

codegen/src/main/java/software/amazon/awssdk/codegen/emitters/tasks/SyncClientGeneratorTasks.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import software.amazon.awssdk.codegen.emitters.GeneratorTaskParams;
2323
import software.amazon.awssdk.codegen.poet.builder.SyncClientBuilderClass;
2424
import software.amazon.awssdk.codegen.poet.builder.SyncClientBuilderInterface;
25-
import software.amazon.awssdk.codegen.poet.client.ClientSimpleMethodsIntegrationTests;
2625
import software.amazon.awssdk.codegen.poet.client.DelegatingSyncClientClass;
2726
import software.amazon.awssdk.codegen.poet.client.SyncClientClass;
2827
import software.amazon.awssdk.codegen.poet.client.SyncClientInterface;
@@ -48,9 +47,6 @@ protected List<GeneratorTask> createTasks() throws Exception {
4847
tasks.add(createClientBuilderTask());
4948
tasks.add(createClientInterfaceTask());
5049
tasks.add(createClientBuilderInterfaceTask());
51-
if (!model.simpleMethodsRequiringTesting().isEmpty()) {
52-
tasks.add(createClientSimpleMethodsTest());
53-
}
5450
if (model.getEndpointOperation().isPresent()) {
5551
tasks.add(createEndpointDiscoveryCacheLoaderTask());
5652
}
@@ -80,10 +76,6 @@ private GeneratorTask createClientBuilderInterfaceTask() throws IOException {
8076
return createPoetGeneratorTask(new SyncClientBuilderInterface(model));
8177
}
8278

83-
private GeneratorTask createClientSimpleMethodsTest() throws IOException {
84-
return createPoetGeneratorTestTask(new ClientSimpleMethodsIntegrationTests(model));
85-
}
86-
8779
private GeneratorTask createEndpointDiscoveryCacheLoaderTask() throws IOException {
8880
return createPoetGeneratorTask(new EndpointDiscoveryCacheLoaderGenerator(generatorTaskParams));
8981
}

codegen/src/main/java/software/amazon/awssdk/codegen/model/intermediate/IntermediateModel.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
import java.io.UncheckedIOException;
2222
import java.util.Collections;
2323
import java.util.HashMap;
24-
import java.util.List;
2524
import java.util.Map;
2625
import java.util.Optional;
27-
import java.util.stream.Collectors;
2826
import software.amazon.awssdk.awscore.AwsResponse;
2927
import software.amazon.awssdk.awscore.AwsResponseMetadata;
3028
import software.amazon.awssdk.codegen.model.config.customization.CustomizationConfig;
@@ -273,13 +271,6 @@ private String getResponseMetadataClassName() {
273271
return AwsResponseMetadata.class.getName();
274272
}
275273

276-
@JsonIgnore
277-
public List<OperationModel> simpleMethodsRequiringTesting() {
278-
return getOperations().values().stream()
279-
.filter(v -> v.getInputShape().isSimpleMethod())
280-
.collect(Collectors.toList());
281-
}
282-
283274
public Optional<OperationModel> getEndpointOperation() {
284275
return endpointOperation;
285276
}

codegen/src/main/java/software/amazon/awssdk/codegen/poet/client/ClientSimpleMethodsIntegrationTests.java

Lines changed: 0 additions & 110 deletions
This file was deleted.

codegen/src/test/java/software/amazon/awssdk/codegen/poet/client/PoetClientFunctionalTests.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ public void delegatingSyncClientClass() throws Exception {
5757
assertThat(syncClientDecoratorAbstractClass, generatesTo("test-abstract-sync-client-class.java"));
5858
}
5959

60-
@Test
61-
public void simpleMethodsIntegClass() throws Exception {
62-
ClientSimpleMethodsIntegrationTests simpleMethodsClass = new ClientSimpleMethodsIntegrationTests(
63-
ClientTestModels.restJsonServiceModels());
64-
assertThat(simpleMethodsClass, generatesTo("test-simple-methods-integ-class.java"));
65-
}
66-
6760
@Test
6861
public void syncClientClassRestJson() throws Exception {
6962
SyncClientClass syncClientClass = createSyncClientClass(ClientTestModels.restJsonServiceModels());

codegen/src/test/resources/software/amazon/awssdk/codegen/poet/client/test-simple-methods-integ-class.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)