Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit a880f3d

Browse files
committed
chore: Map all teardown functions
1 parent f595d88 commit a880f3d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/io/contract_testing/contractcase/client/ConnectorOutgoingMapper.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,16 @@ static ContractCaseConfig mapConfig(final @NotNull ContractCaseBoundaryConfig co
8686
}
8787

8888
if (config.getStateHandlers() != null) {
89-
// TODO: TEARDOWN FUNCTION
9089
config.getStateHandlers().forEach((key, value) -> {
9190
builder.addStateHandlers(StateHandlerHandle.newBuilder()
9291
.setHandle(ConnectorOutgoingMapper.map(key))
9392
.setStage(Stage.STAGE_SETUP_UNSPECIFIED)
9493
.build());
94+
95+
builder.addStateHandlers(StateHandlerHandle.newBuilder()
96+
.setHandle(ConnectorOutgoingMapper.map(key))
97+
.setStage(Stage.STAGE_TEARDOWN)
98+
.build());
9599
});
96100
}
97101

0 commit comments

Comments
 (0)