@Test public void testGetAllStructFieldRefs() { List<? extends StructField> fields = target.getAllStructFieldRefs(); for (int i = 0; i < _Fields.values().length; i++) { _Fields f = _Fields.values()[i]; StructField sf = fields.get(i); assertEquals(f.getFieldName().toLowerCase(), sf.getFieldName()); } }
@Test public void testList() { List<StructField> fields = target.list(ThadoopSample.metaDataMap); for (int i = 0; i < _Fields.values().length; i++) { _Fields f = _Fields.values()[i]; StructField sf = fields.get(i); assertEquals(f.getFieldName().toLowerCase(), sf.getFieldName()); } }