You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Neil Kolban (JIRA)" <ji...@apache.org> on 2019/04/27 17:50:00 UTC

[jira] [Updated] (BEAM-7169) Sample in PAssert JavaDoc shows un-known function

     [ https://issues.apache.org/jira/browse/BEAM-7169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neil Kolban updated BEAM-7169:
------------------------------
    Description: 
If we look at the JavaDoc for PAssert found here 

[https://beam.apache.org/releases/javadoc/2.12.0/index.html?org/apache/beam/sdk/testing/PAssert.html]

 

We see a sample that reads:

{{PCollection<Integer>}}
{{ints = ... }}
{{PCollection<Integer> sum = ints}}
{{ .apply(Combine.globally(new SumInts()));}}
{{ PAssert.that(sum)}}
{{ .is(42);}}

My problem / concern with this is the use of the method "is()".  This is not an exposed function on the class PAssert.IterableAssert.  This issue looks for examination.

  was:
If we look at the JavaDoc for PAssert found here 

[https://beam.apache.org/releases/javadoc/2.12.0/index.html?org/apache/beam/sdk/testing/PAssert.html]

 

We see a sample that reads:

{{ PCollection<Integer>}}
{{ints = ... }}
{{PCollection<Integer> sum = ints}}
{{ .apply(Combine.globally(new SumInts()));}}
{{ PAssert.that(sum)}}
{{ .is(42);}}

My problem / concern with this is the use of the method "is()".  This is not an exposed function on the class PAssert.IterableAssert.  This issue looks for examination.


> Sample in PAssert JavaDoc shows un-known function
> -------------------------------------------------
>
>                 Key: BEAM-7169
>                 URL: https://issues.apache.org/jira/browse/BEAM-7169
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Neil Kolban
>            Priority: Minor
>
> If we look at the JavaDoc for PAssert found here 
> [https://beam.apache.org/releases/javadoc/2.12.0/index.html?org/apache/beam/sdk/testing/PAssert.html]
>  
> We see a sample that reads:
> {{PCollection<Integer>}}
> {{ints = ... }}
> {{PCollection<Integer> sum = ints}}
> {{ .apply(Combine.globally(new SumInts()));}}
> {{ PAssert.that(sum)}}
> {{ .is(42);}}
> My problem / concern with this is the use of the method "is()".  This is not an exposed function on the class PAssert.IterableAssert.  This issue looks for examination.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)