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

    https://github.com/apache/drill/pull/152#discussion_r39192041
  
    --- Diff: exec/java-exec/src/test/java/org/apache/drill/BaseTestQuery.java 
---
    @@ -379,6 +379,16 @@ protected static void parseErrorHelper(final String 
testSqlQuery) throws Excepti
         errorMsgTestHelper(testSqlQuery, 
UserBitShared.DrillPBError.ErrorType.PARSE.name());
       }
     
    +  /**
    +   * Utility method which tests given query produces a {@link 
UserException}
    +   * with {@link 
org.apache.drill.exec.proto.UserBitShared.DrillPBError.ErrorType}
    +   * being DrillPBError.ErrorType.VALIDATION the given message.
    +   * @param testSqlQuery Test query
    +   */
    +  protected static void validationErrorHelper(final String testSqlQuery) 
throws Exception {
    --- End diff --
    
    Can you use ```thrownException.expect(new UserExceptionMatcher(VALIDATION, 
"..."));``` in unit tests that use this method (rather than defining and using 
this method)?


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