use of org.jooq.meta.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.meta.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.meta.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());
}
use of org.jooq.meta.firebird.rdb.tables.Rdb$fields in project atlasmap by atlasmap.
the class AtlasJsonModelFactory method createJsonDocument.
/**
* Creates a JSON Document.
* @return JSON Document
*/
public static JsonDocument createJsonDocument() {
JsonDocument jsonDocument = new JsonDocument();
jsonDocument.setFields(new Fields());
return jsonDocument;
}
use of org.jooq.meta.firebird.rdb.tables.Rdb$fields in project atlasmap by atlasmap.
the class AtlasXmlModelFactory method createXmlDocument.
/**
* Creates the XML Document.
* @return XML Document
*/
public static XmlDocument createXmlDocument() {
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.setFields(new Fields());
return xmlDocument;
}
Aggregations