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

Method checkErrorMessageContainsExpected

test/org/apache/pig/test/Util.java:666–672  ·  view source on GitHub ↗
(String message, String expectedMessage)

Source from the content-addressed store, hash-verified

664 }
665
666 public static void checkErrorMessageContainsExpected(String message, String expectedMessage){
667 if(!message.contains(expectedMessage)){
668 String msg = "Expected error message containing '"
669 + expectedMessage + "' but got '" + message + "'" ;
670 fail(msg);
671 }
672 }
673
674 static private String getFSMkDirCommand(String fileName) {
675 Path parentDir = new Path(fileName).getParent();

Callers 2

NegativeTest3Method · 0.95

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected