Github user kl0u commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3381#discussion_r102916718
  
    --- Diff: 
flink-libraries/flink-cep/src/test/java/org/apache/flink/cep/nfa/compiler/NFACompilerTest.java
 ---
    @@ -42,6 +45,43 @@
     
     public class NFACompilerTest extends TestLogger {
     
    +   @Rule
    +   public ExpectedException expectedException = ExpectedException.none();
    +
    +   @Test
    +   public void testNFACompilerUniquePatternName() {
    +
    +           // adjust the rule
    +           expectedException.expect(MalformedPatternException.class);
    +           expectedException.expectMessage("Duplicate pattern name: start. 
Pattern names must be unique.");
    --- End diff --
    
    I match on both type and message. Do you suggest to remove the message 
matching part or you have a better way to do so?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to