You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lc...@apache.org on 2016/12/28 19:41:39 UTC

[6/8] beam git commit: Revised the javadoc to include TestPipeline as a JUnit usage.

Revised the javadoc to include TestPipeline as a JUnit usage.


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/239848c1
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/239848c1
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/239848c1

Branch: refs/heads/master
Commit: 239848c1a4bed0ee2771730dfaae559880da7f6a
Parents: 67ecb0a
Author: Stas Levin <st...@gmail.com>
Authored: Thu Dec 22 00:03:17 2016 +0200
Committer: Luke Cwik <lc...@google.com>
Committed: Wed Dec 28 11:40:33 2016 -0800

----------------------------------------------------------------------
 .../apache/beam/sdk/testing/RunnableOnService.java    | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/239848c1/sdks/java/core/src/main/java/org/apache/beam/sdk/testing/RunnableOnService.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/testing/RunnableOnService.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/testing/RunnableOnService.java
index 5741433..2794d1a 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/testing/RunnableOnService.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/testing/RunnableOnService.java
@@ -23,11 +23,15 @@ package org.apache.beam.sdk.testing;
  * <pre><code>
  *     {@literal @}Test
  *     {@literal @}Category(RunnableOnService.class)
- *     public void testParDo() {
- *       Pipeline p = TestPipeline.create();
- *       p.apply(...);
- *       PAssert.that(p);
- *       p.run();
+ *     public class ParDoTest {
+ *       {@literal @}Rule
+ *       public final transient TestPipeline p = TestPipeline.create();
+ *
+ *       public void testParDo() {
+ *         p.apply(...);
+ *         PAssert.that(p);
+ *         p.run();
+ *       }
  *     }
  * </code></pre>
  */