use of org.talend.dataquality.semantic.classifier.SemanticCategoryEnum in project data-prep by Talend.
the class StandardizeInvalidTest method should_accept_column.
@Test
public void should_accept_column() {
// a column with semantic
SemanticCategoryEnum semantic = SemanticCategoryEnum.COUNTRY;
List<SemanticDomain> semanticDomainLs = new ArrayList<>();
semanticDomainLs.add(new SemanticDomain("COUNTRY", "Country", 0.85f));
ColumnMetadata column = ColumnMetadata.Builder.column().id(0).name("name").type(Type.STRING).semanticDomains(semanticDomainLs).domain(semantic.name()).build();
assertTrue(action.acceptField(column));
}
Aggregations