columns.add(timeColumn);
columns.add(timeStampColumn);
columns.add(floatColumn);
DBMapper dBMapper = new DBMapper();
Schema schema = dBMapper.getSchema(columns);
// Computing actual values.
Schema.Field intColumnField = new Schema.Field("intColumn",
Schema.create(Schema.Type.INT), null, null);
Schema.Field stringColumnField = new Schema.Field("stringColumn",
Schema.create(Schema.Type.STRING), null, null);
Schema.Field dateColumnField = new Schema.Field("dateColumn",
Schema.create(Schema.Type.STRING), null, null);
Schema.Field longColumnField = new Schema.Field("longColumn",
Schema.create(Schema.Type.LONG), null, null);
Schema.Field booleanColumnField = new Schema.Field("booleanColumn",
Schema.create(Schema.Type.BOOLEAN), null, null);
Schema.Field doubleColumnField = new Schema.Field("doubleColumn",
Schema.create(Schema.Type.DOUBLE), null, null);
Schema.Field charColumnField = new Schema.Field("charColumn",
Schema.create(Schema.Type.STRING), null, null);
Schema.Field timeColumnField = new Schema.Field("timeColumn",
Schema.create(Schema.Type.STRING), null, null);
Schema.Field timeStampColumnField = new Schema.Field("timeStampColumn",
Schema.create(Schema.Type.STRING), null, null);
Schema.Field floatColumnField = new Schema.Field("floatColumn",
Schema.create(Schema.Type.DOUBLE), null, null);
ArrayList<Schema.Field> fields = new ArrayList<Schema.Field>();
fields.add(intColumnField);
fields.add(stringColumnField);
fields.add(dateColumnField);
fields.add(longColumnField);
fields.add(booleanColumnField);
fields.add(doubleColumnField);
fields.add(charColumnField);
fields.add(timeColumnField);
fields.add(timeStampColumnField);
fields.add(floatColumnField);
Schema recordSchema = Schema.createRecord("hihoValue", null, null,
false);
recordSchema.setFields(fields);
assertEquals(recordSchema, schema);
}