This ensures that a fresh Tuple out of a TupleFactory will be full of null fields. @param tf a TupleFactory @throws ExecException
(SchemaTupleFactory tf)
| 385 | * @throws ExecException |
| 386 | */ |
| 387 | private void shouldAllBeNull(SchemaTupleFactory tf) throws ExecException { |
| 388 | Tuple t = tf.newTuple(); |
| 389 | for (Object o : t) { |
| 390 | assertNull(o); |
| 391 | } |
| 392 | for (int i = 0; i < t.size(); i++) { |
| 393 | assertNull(t.get(i)); |
| 394 | assertTrue(t.isNull(i)); |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | private void fillWithData(SchemaTuple<?> st) throws ExecException { |
| 399 | Schema udfSchema = st.getSchema(); |
no test coverage detected