use of io.confluent.ksql.execution.expression.tree.Type in project ksql by confluentinc.
the class TableElementTest method shouldReturnName.
@Test
public void shouldReturnName() {
// Given:
final TableElement element = new TableElement(NAME, new Type(SqlTypes.STRING), NO_COLUMN_CONSTRAINTS);
// Then:
assertThat(element.getName(), is(NAME));
}
use of io.confluent.ksql.execution.expression.tree.Type in project ksql by confluentinc.
the class TableElementTest method shouldReturnHeadersConstraint.
@Test
public void shouldReturnHeadersConstraint() {
// Given:
final TableElement valueElement = new TableElement(NAME, new Type(SqlTypes.STRING), HEADERS_CONSTRAINT);
// Then:
assertThat(valueElement.getConstraints(), is(HEADERS_CONSTRAINT));
}
use of io.confluent.ksql.execution.expression.tree.Type in project ksql by confluentinc.
the class TableElementTest method shouldReturnEmptyConstraints.
@Test
public void shouldReturnEmptyConstraints() {
// Given:
final TableElement valueElement = new TableElement(NAME, new Type(SqlTypes.STRING));
// Then:
assertThat(valueElement.getConstraints(), is(NO_COLUMN_CONSTRAINTS));
}
Aggregations