use of com.linkedin.data.template.StringArrayArray in project rest.li by linkedin.
the class TestArray method testStringArrayArray.
@Test
public void testStringArrayArray() {
TestDataTemplateUtil.FieldInfo fieldInfo = TestDataTemplateUtil.fieldInfo(new ArrayTest(), "stringArrayArray");
@SuppressWarnings("unchecked") Class<StringArrayArray> templateClass = (Class<StringArrayArray>) fieldInfo.getFieldClass();
ArrayDataSchema schema = (ArrayDataSchema) fieldInfo.getField().getType();
List<StringArray> input = new ArrayList<>();
for (int i = 0; i < 5; ++i) {
input.add(new StringArray("input" + i));
}
List<StringArray> adds = new ArrayList<>();
for (int i = 0; i < 5; ++i) {
adds.add(new StringArray("add" + i));
}
TestArrayTemplate.testArray(templateClass, schema, input, adds);
}
Aggregations