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

Method simpleNegativeTest3

test/org/apache/pig/test/TestPigRunner.java:585–592  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583 }
584
585 @Test
586 public void simpleNegativeTest3() throws Exception {
587 String[] args = { "-x", execType, "-c", "-y" };
588 PigStats stats = PigRunner.run(args, new TestNotificationListener(execType));
589 assertTrue(stats.getReturnCode() == ReturnCode.PARSE_EXCEPTION);
590 assertEquals("Found unknown option (-y) at position 4",
591 stats.getErrorMessage());
592 }
593
594 @Test
595 public void streamNegativeTest() throws Exception {

Callers

nothing calls this directly

Calls 4

runMethod · 0.95
getReturnCodeMethod · 0.95
getErrorMessageMethod · 0.95
assertEqualsMethod · 0.45

Tested by

no test coverage detected