" calendar.draw();",
" }",
"}"});
calendar.refresh();
//
DataSourceInfo dataSource =
NonVisualBeanContainerInfo.get(calendar).getChildren(DataSourceInfo.class).get(0);
assertThat(NonVisualBeanInfo.getNonVisualInfo(dataSource).getLocation()).isNull();
// check fields
List<DataSourceFieldInfo> dsDirectFields = dataSource.getChildren(DataSourceFieldInfo.class);
assertThat(dsDirectFields.size()).isEqualTo(2);
assertThat(
ReflectionUtils.isSuccessorOf(
dsDirectFields.get(0).getObject(),
"com.smartgwt.client.data.fields.DataSourceBooleanField")).isTrue();
assertThat(
ReflectionUtils.isSuccessorOf(
dsDirectFields.get(1).getObject(),
"com.smartgwt.client.data.fields.DataSourceDateField")).isTrue();
//
AbstractArrayObjectInfo objectFieldsInfo =
dataSource.getChildren(AbstractArrayObjectInfo.class).get(0);
assertThat(objectFieldsInfo.getItems().size()).isEqualTo(1);
assertThat(objectFieldsInfo.getChildren(DataSourceFieldInfo.class).size()).isEqualTo(0);
}