Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ The following example code shows how one might test the [WordCount example pipel
{{< highlight java >}}
public class WordCountTest {

@Rule public final transient TestPipeline p = TestPipeline.create();

// Our static input data, which will comprise the initial PCollection.
static final String[] WORDS_ARRAY = new String[] {
"hi there", "hi", "hi sue bob",
Expand All @@ -301,8 +303,6 @@ public class WordCountTest {
// Example test that tests the pipeline's transforms.

public void testCountWords() throws Exception {
Pipeline p = TestPipeline.create();

// Create a PCollection from the WORDS static input data.
PCollection<String> input = p.apply(Create.of(WORDS));

Expand Down
Loading