MCPcopy Create free account
hub / github.com/apache/pig / checkMessageInException

Method checkMessageInException

test/org/apache/pig/test/Util.java:658–664  ·  view source on GitHub ↗
(FrontendException e,
             String expectedErr)

Source from the content-addressed store, hash-verified

656 }
657
658 public static void checkMessageInException(FrontendException e,
659 String expectedErr) {
660 PigException pigEx = LogUtils.getPigException(e);
661 String message = pigEx.getMessage();
662 checkErrorMessageContainsExpected(message, expectedErr);
663
664 }
665
666 public static void checkErrorMessageContainsExpected(String message, String expectedMessage){
667 if(!message.contains(expectedMessage)){

Callers 9

testNegativeWithAliasMethod · 0.95
test1Method · 0.95
checkExceptionMessageMethod · 0.95

Calls 3

getPigExceptionMethod · 0.95
getMessageMethod · 0.45

Tested by

no test coverage detected