Github user greghogan commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2527#discussion_r80309626
  
    --- Diff: 
flink-libraries/flink-gelly-examples/src/test/java/org/apache/flink/graph/library/SummarizationITCase.java
 ---
    @@ -100,23 +102,41 @@ public void testWithVertexAndAbsentEdgeValues() 
throws Exception {
                validateEdges(SummarizationData.EXPECTED_EDGES_ABSENT_VALUES, 
summarizedEdges);
        }
     
    -   private void validateVertices(String[] expectedVertices,
    -                                                                           
                                                List<Vertex<Long, 
Summarization.VertexValue<String>>> actualVertices) {
    +   @Test
    +   public void testWithVertexAndEdgeLongValues() throws Exception {
    +           ExecutionEnvironment env = 
ExecutionEnvironment.getExecutionEnvironment();
    +
    +           Graph<Long, Long, Long> input = Graph.fromDataSet(
    +                           SummarizationData.getVertices(env),
    +                           SummarizationData.getEdges(env),
    +                           env)
    +                   .run(new TranslateVertexValues<Long, String, Long, 
String>(new StringToLong()))
    +                   .run(new TranslateEdgeValues<Long, Long, String, 
Long>(new StringToLong()));
    +
    +           List<Vertex<Long, Summarization.VertexValue<Long>>> 
summarizedVertices = Lists.newArrayList();
    --- End diff --
    
    Can replace Guava's `Lists.newArrayList()` with `new ArrayList<>()`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to