Java Code Examples for org.apache.flink.test.util.TestBaseUtils#compareResultsByLinesInMemory()
The following examples show how to use
org.apache.flink.test.util.TestBaseUtils#compareResultsByLinesInMemory() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MusicProfilesITCase.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expectedTopSongs, topSongsResultPath); ArrayList<String> list = new ArrayList<>(); TestBaseUtils.readAllResultLines(list, communitiesResultPath, new String[]{}, false); String[] result = list.toArray(new String[list.size()]); Arrays.sort(result); // check that user_1 and user_2 are in the same community Assert.assertEquals("users 1 and 2 are not in the same community", result[0].substring(7), result[1].substring(7)); // check that user_3, user_4 and user_5 are in the same community Assert.assertEquals("users 3 and 4 are not in the same community", result[2].substring(7), result[3].substring(7)); Assert.assertEquals("users 4 and 5 are not in the same community", result[3].substring(7), result[4].substring(7)); }
Example 2
Source File: MusicProfilesITCase.java From flink with Apache License 2.0 | 6 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expectedTopSongs, topSongsResultPath); ArrayList<String> list = new ArrayList<>(); TestBaseUtils.readAllResultLines(list, communitiesResultPath, new String[]{}, false); String[] result = list.toArray(new String[list.size()]); Arrays.sort(result); // check that user_1 and user_2 are in the same community Assert.assertEquals("users 1 and 2 are not in the same community", result[0].substring(7), result[1].substring(7)); // check that user_3, user_4 and user_5 are in the same community Assert.assertEquals("users 3 and 4 are not in the same community", result[2].substring(7), result[3].substring(7)); Assert.assertEquals("users 4 and 5 are not in the same community", result[3].substring(7), result[4].substring(7)); }
Example 3
Source File: MusicProfilesITCase.java From flink with Apache License 2.0 | 6 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expectedTopSongs, topSongsResultPath); ArrayList<String> list = new ArrayList<>(); TestBaseUtils.readAllResultLines(list, communitiesResultPath, new String[]{}, false); String[] result = list.toArray(new String[list.size()]); Arrays.sort(result); // check that user_1 and user_2 are in the same community Assert.assertEquals("users 1 and 2 are not in the same community", result[0].substring(7), result[1].substring(7)); // check that user_3, user_4 and user_5 are in the same community Assert.assertEquals("users 3 and 4 are not in the same community", result[2].substring(7), result[3].substring(7)); Assert.assertEquals("users 4 and 5 are not in the same community", result[3].substring(7), result[4].substring(7)); }
Example 4
Source File: EuclideanGraphWeighingITCase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }
Example 5
Source File: IncrementalSSSPITCase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }
Example 6
Source File: SingleSourceShortestPathsITCase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }
Example 7
Source File: EuclideanGraphWeighingITCase.java From flink with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }
Example 8
Source File: IncrementalSSSPITCase.java From flink with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }
Example 9
Source File: SingleSourceShortestPathsITCase.java From flink with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }
Example 10
Source File: EuclideanGraphWeighingITCase.java From flink with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }
Example 11
Source File: IncrementalSSSPITCase.java From flink with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }
Example 12
Source File: SingleSourceShortestPathsITCase.java From flink with Apache License 2.0 | 4 votes |
@After public void after() throws Exception { TestBaseUtils.compareResultsByLinesInMemory(expected, resultPath); }