use of org.jooq.util.firebird.rdb.tables.Rdb$fields in project atlasmap by atlasmap.
the class AtlasUtilTest method testExcludeNotRequestedFieldsShouldIncludeAllIfIncludePathsNull.
@Test
public void testExcludeNotRequestedFieldsShouldIncludeAllIfIncludePathsNull() {
Document document = new Document();
Fields fields = new Fields();
fields.getField().add(newField("/A", newField("/A/A", newField("/A/A/A"), newField("/A/A/B")), newField("/A/B", newField("/A/B/A", newField("/A/B/A/A")))));
document.setFields(fields);
AtlasUtil.excludeNotRequestedFields(document, null);
assertEquals("/A{/A/A{/A/A/A{}, /A/A/B{}, }, /A/B{/A/B/A{/A/B/A/A{}, }, }, }, ", fields.getField().get(0).toString());
}
use of org.jooq.util.firebird.rdb.tables.Rdb$fields in project atlasmap by atlasmap.
the class AtlasUtilTest method testExcludeNotRequestedFieldsShouldIncludeAllIntermediateLevels.
@Test
public void testExcludeNotRequestedFieldsShouldIncludeAllIntermediateLevels() {
Document document = new Document();
Fields fields = new Fields();
fields.getField().add(newField("/A", newField("/A/A", newField("/A/A/A"), newField("/A/A/B")), newField("/A/B", newField("/A/B/A", newField("/A/B/A/A")))));
document.setFields(fields);
AtlasUtil.excludeNotRequestedFields(document, Arrays.asList("/A/A/B"));
assertEquals("/A{/A/A{/A/A/A{}, /A/A/B{}, }, /A/B{}, }, ", fields.getField().get(0).toString());
}
use of org.jooq.util.firebird.rdb.tables.Rdb$fields in project atlasmap by atlasmap.
the class AtlasUtilTest method testExcludeNotRequestedFieldsShouldIncludeTwoDifferentLevels.
@Test
public void testExcludeNotRequestedFieldsShouldIncludeTwoDifferentLevels() {
Document document = new Document();
Fields fields = new Fields();
fields.getField().add(newField("/A", newField("/A/A", newField("/A/A/A"), newField("/A/A/B")), newField("/A/B", newField("/A/B/A", newField("/A/B/A/A")))));
document.setFields(fields);
AtlasUtil.excludeNotRequestedFields(document, Arrays.asList("/A/A", "/A/B"));
assertEquals("/A{/A/A{/A/A/A{}, /A/A/B{}, }, /A/B{/A/B/A{}, }, }, ", fields.getField().get(0).toString());
}
use of org.jooq.util.firebird.rdb.tables.Rdb$fields in project atlasmap by atlasmap.
the class AtlasUtilTest method testExcludeNotRequestedFieldsShouldIncludeAllIfIncludePathsEmpty.
@Test
public void testExcludeNotRequestedFieldsShouldIncludeAllIfIncludePathsEmpty() {
Document document = new Document();
Fields fields = new Fields();
fields.getField().add(newField("/A", newField("/A/A", newField("/A/A/A"), newField("/A/A/B")), newField("/A/B", newField("/A/B/A", newField("/A/B/A/A")))));
document.setFields(fields);
AtlasUtil.excludeNotRequestedFields(document, Collections.emptyList());
assertEquals("/A{/A/A{/A/A/A{}, /A/A/B{}, }, /A/B{/A/B/A{/A/B/A/A{}, }, }, }, ", fields.getField().get(0).toString());
}
use of org.jooq.util.firebird.rdb.tables.Rdb$fields in project atlasmap by atlasmap.
the class AtlasUtilTest method testExcludeNotRequestedFieldsShouldIncludeTwoLevels.
@Test
public void testExcludeNotRequestedFieldsShouldIncludeTwoLevels() {
Document document = new Document();
Fields fields = new Fields();
fields.getField().add(newField("/A", newField("/A/A", newField("/A/A/A"), newField("/A/A/B")), newField("/A/B", newField("/A/B/A", newField("/A/B/A/A")))));
document.setFields(fields);
AtlasUtil.excludeNotRequestedFields(document, Arrays.asList("/A/B"));
assertEquals("/A{/A/A{}, /A/B{/A/B/A{}, }, }, ", fields.getField().get(0).toString());
}
Aggregations