[jira] [Created] (FLINK-19915) wrong comments of cep test

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-19915) wrong comments of cep test

Shang Yuanchun (Jira)
jackylau created FLINK-19915:
--------------------------------

             Summary: wrong comments of cep test
                 Key: FLINK-19915
                 URL: https://issues.apache.org/jira/browse/FLINK-19915
             Project: Flink
          Issue Type: Bug
          Components: Library / CEP
    Affects Versions: 1.11.0
            Reporter: jackylau
             Fix For: 1.12.0


@Test
public void testNFACompilerPatternEndsWithNotFollowedBy() {

 // adjust the rule
 expectedException.expect(MalformedPatternException.class);
 expectedException.expectMessage("NotFollowedBy is not supported as a last part of a Pattern!");

 Pattern<Event, ?> invalidPattern = Pattern.<Event>begin("start").where(new TestFilter())
 .followedBy("middle").where(new TestFilter())
 .notFollowedBy("end").where(new TestFilter());

 // here we must have an exception because of the two "start" patterns with the same name.
 compile(invalidPattern, false);
}

 

// here we must have an exception because of the two "start" patterns with the same name.

It is not right



--
This message was sent by Atlassian Jira
(v8.3.4#803005)