Search in sources :

Example 6 with OrderDataProvider

use of io.confluent.ksql.util.OrderDataProvider in project ksql by confluentinc.

the class WindowingIntTest method before.

@Before
public void before() throws Exception {
    testHarness = new IntegrationTestHarness();
    testHarness.start();
    ksqlContext = KsqlContext.create(testHarness.ksqlConfig);
    testHarness.createTopic(topicName);
    /**
     * Setup test data - align to the next time unit to support tumbling window alignment
     */
    alignTimeToWindowSize(WINDOW_SIZE_SEC);
    now = System.currentTimeMillis() + 500;
    testHarness.createTopic("ORDERS");
    dataProvider = new OrderDataProvider();
    datasetOneMetaData = testHarness.publishTestData(topicName, dataProvider, now - 500);
    createOrdersStream();
}
Also used : OrderDataProvider(io.confluent.ksql.util.OrderDataProvider) Before(org.junit.Before)

Aggregations

OrderDataProvider (io.confluent.ksql.util.OrderDataProvider)6 Before (org.junit.Before)4 ItemDataProvider (io.confluent.ksql.util.ItemDataProvider)2 HashMap (java.util.HashMap)2 GenericRow (io.confluent.ksql.GenericRow)1 KsqlConfig (io.confluent.ksql.util.KsqlConfig)1 Schema (org.apache.kafka.connect.data.Schema)1