*/
public class DirectTupleCodeGeneratorTest {
@Test
public void testAccessorsGetGenerated() throws Exception {
DirectTupleSchema schema = TupleSchema.builder().
addField("a", Long.TYPE).
addField("b", Integer.TYPE).
addField("c", Short.TYPE).
addField("d", Character.TYPE).
addField("e", Byte.TYPE).
addField("f", Float.TYPE).
addField("g", Double.TYPE).
directMemory().
build();
DirectTupleCodeGenerator codegen = new DirectTupleCodeGenerator(null, schema.getFieldNames(), schema.getFieldTypes(), schema.getLayout());
Class clazz = codegen.cookToClass();
assertGetterAndSetterGenerated(clazz, "a", long.class);
assertGetterAndSetterGenerated(clazz, "b", int.class);
assertGetterAndSetterGenerated(clazz, "c", short.class);
assertGetterAndSetterGenerated(clazz, "d", char.class);