[
https://issues.apache.org/jira/browse/FLINK-19915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dawid Wysakowicz closed FLINK-19915.
------------------------------------
Resolution: Fixed
Fixed in f84acf6de3a46f5439bcc43120011c527dbd47a6
> 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
> Priority: Major
> Fix For: 1.12.0
>
>
> {code:java}
> // code placeholder
> @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);
> }
> {code}
>
>
> // 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)