PAssert is a class included in the Beam Java SDK that is an
assertion on the contents of a
PCollection. You can use
PAssert to verify
PCollection contains a specific set of expected elements.
For a given
PCollection, you can use
PAssert to verify the contents as follows:
Any code that uses
PAssert must link in
If you’re using Maven, you can link in
Hamcrest by adding the
following dependency to your project’s pom.xml file:
Last updated on 2020/08/14
Have you found everything you were looking for?
Was it all useful and clear? Is there anything that you would like to change? Let us know!