Search in sources :

Example 11 with Property

use of io.confluent.ksql.rest.entity.PropertiesList.Property in project ksql by confluentinc.

the class PropertiesListTableBuilderTest method shouldHandleServerOverwrittenProperties.

@Test
public void shouldHandleServerOverwrittenProperties() {
    // Given:
    final PropertiesList propList = new PropertiesList("list properties;", ImmutableList.of(new Property(SOME_KEY, "KSQL", "earliest")), Collections.emptyList(), Collections.emptyList());
    // When:
    final Table table = builder.buildTable(propList);
    // Then:
    assertThat(getRows(table), contains(row(SOME_KEY, "KSQL", "SERVER", "earliest")));
}
Also used : Table(io.confluent.ksql.cli.console.table.Table) PropertiesList(io.confluent.ksql.rest.entity.PropertiesList) Property(io.confluent.ksql.rest.entity.PropertiesList.Property) Test(org.junit.Test)

Aggregations

PropertiesList (io.confluent.ksql.rest.entity.PropertiesList)11 Property (io.confluent.ksql.rest.entity.PropertiesList.Property)11 Test (org.junit.Test)10 Table (io.confluent.ksql.cli.console.table.Table)4 ConfiguredStatement (io.confluent.ksql.statement.ConfiguredStatement)3 KsqlConfig (io.confluent.ksql.util.KsqlConfig)2 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)2 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)2 KsqlConfigResolver (io.confluent.ksql.config.KsqlConfigResolver)1 KsqlEntityList (io.confluent.ksql.rest.entity.KsqlEntityList)1 KsqlRequest (io.confluent.ksql.rest.entity.KsqlRequest)1 ArrayList (java.util.ArrayList)1 Matchers.containsString (org.hamcrest.Matchers.containsString)1