[ 
https://issues.apache.org/jira/browse/FLINK-19915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jackylau updated FLINK-19915:
-----------------------------
    Description: 
{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

  was:
@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


> 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)

Reply via email to