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

Method testInteger

test/org/apache/pig/test/TestTextDataParser.java:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 @Test
93 public void testInteger() throws Exception{
94 String myInteger = "1";
95 Integer i = ps.getLoadCaster().bytesToInteger(myInteger.getBytes());
96 assertEquals(Integer.valueOf(1), i);
97 }
98
99 @Test
100 public void testLong() throws Exception{

Callers

nothing calls this directly

Calls 4

bytesToIntegerMethod · 0.65
getLoadCasterMethod · 0.65
getBytesMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected