Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


public class WordCountIntegrationTest {
final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
private final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();

@Test
public void givenDataSet_whenExecuteWordCount_thenReturnWordCount() throws Exception {
Expand Down Expand Up @@ -65,8 +65,8 @@ public void givenDataSetOfComplexObjects_whenMapToGetOneField_thenReturnedListHa
List<Integer> ages = personDataSource.map(p -> p.age).collect();

//then
assertThat(ages.size()).isEqualTo(2);
assertThat(ages.containsAll(Arrays.asList(23, 75))).isTrue();
assertThat(ages).hasSize(2);
assertThat(ages).contains(23, 75);

}

Expand Down Expand Up @@ -110,8 +110,8 @@ public void giveTwoDataSets_whenJoinUsingId_thenProduceJoinedData() throws Excep
.collect();

//then
assertThat(joined.size()).isEqualTo(1);
assertThat(joined.contains(new Tuple2<>(firstTransaction, address)));
assertThat(joined).hasSize(1);
assertThat(joined).contains(new Tuple2<>(firstTransaction, address));

}

Expand Down