beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas Ursa (JIRA)" <>
Subject [jira] [Created] (BEAM-2358) "/test-your-pipeline" example code results in an exception
Date Wed, 24 May 2017 15:54:04 GMT
Nicholas Ursa created BEAM-2358:

             Summary: "/test-your-pipeline" example code results in an exception
                 Key: BEAM-2358
             Project: Beam
          Issue Type: Bug
          Components: website
            Reporter: Nicholas Ursa
            Assignee: Davor Bonaci has

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

but this results in 

Exception in thread "main" java.lang.IllegalStateException: Is your TestPipeline declaration
missing a @Rule annotation? Usage: @Rule public final transient TestPipeline pipeline = TestPipeline.Create();
	at Main.main(


In the [github example|]
 it's written as:

public TestPipeline p = TestPipeline.create().enableAbandonedNodeEnforcement(false);

I'm using 2.0.0 from the maven repo.

This message was sent by Atlassian JIRA

View raw message