Skip to content

Commit

Permalink
chore(test): fix falling test
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Feb 27, 2024
1 parent cfe237a commit 51d21c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ void inputsFailed() {
void inputs() {
Flow flow = this.parse("flows/valids/inputs.yaml");

assertThat(flow.getInputs().size(), is(25));
assertThat(flow.getInputs().stream().filter(Input::getRequired).count(), is(7L));
assertThat(flow.getInputs().size(), is(26));
assertThat(flow.getInputs().stream().filter(Input::getRequired).count(), is(8L));
assertThat(flow.getInputs().stream().filter(r -> !r.getRequired()).count(), is(18L));
assertThat(flow.getInputs().stream().filter(r -> r.getDefaults() != null).count(), is(1L));
assertThat(flow.getInputs().stream().filter(r -> r instanceof StringInput && ((StringInput)r).getValidator() != null).count(), is(1L));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class ExecutionControllerTest extends JdbcH2ControllerTest {
public static Map<String, Object> inputs = ImmutableMap.<String, Object>builder()
.put("failed", "NO")
.put("string", "myString")
.put("enum", "ENUM_VALUE")
.put("int", "42")
.put("float", "42.42")
.put("instant", "2019-10-06T18:27:49Z")
Expand Down Expand Up @@ -127,6 +128,7 @@ private MultipartBody createInputsFlowBody() {

return MultipartBody.builder()
.addPart("string", "myString")
.addPart("enum", "ENUM_VALUE")
.addPart("int", "42")
.addPart("float", "42.42")
.addPart("instant", "2019-10-06T18:27:49Z")
Expand Down Expand Up @@ -488,6 +490,7 @@ void filePreview() throws TimeoutException {
Map<String, Object> latin1FileInputs = ImmutableMap.<String, Object>builder()
.put("failed", "NO")
.put("string", "myString")
.put("enum", "ENUM_VALUE")
.put("int", "42")
.put("float", "42.42")
.put("instant", "2019-10-06T18:27:49Z")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void inputs() throws URISyntaxException {
Argument.listOf(InputType.class)
);

assertThat(doc.size(), is(12));
assertThat(doc.size(), is(13));
});
}

Expand Down

0 comments on commit 51d21c8

Please sign in to comment.