()
| 96 | } |
| 97 | |
| 98 | @Test |
| 99 | public void testGetNextString() throws ExecException { |
| 100 | String inp = GenRandomData.genRandString(r); |
| 101 | ce.setValue(inp); |
| 102 | Result ress = ce.getNextString(); |
| 103 | String ret = (String)ress.result; |
| 104 | assertEquals(inp, ret); |
| 105 | |
| 106 | // test with null input |
| 107 | ce.setValue(null); |
| 108 | ress = ce.getNextString(); |
| 109 | ret = (String)ress.result; |
| 110 | assertNull(ret); |
| 111 | } |
| 112 | |
| 113 | @Test |
| 114 | public void testGetNextDataByteArray() throws ExecException { |
nothing calls this directly
no test coverage detected