Search in sources :

Example 1 with KsqlProcessingContext

use of io.confluent.ksql.execution.transform.KsqlProcessingContext in project ksql by confluentinc.

the class KsTransformerTest method shouldExposeRowTime.

@Test
public void shouldExposeRowTime() {
    // Given:
    ksTransformer.transform(KEY, VALUE);
    final KsqlProcessingContext ksqlCtx = getKsqlProcessingContext();
    // When:
    final long rowTime = ksqlCtx.getRowTime();
    // Then:
    assertThat(rowTime, is(ROWTIME));
}
Also used : KsqlProcessingContext(io.confluent.ksql.execution.transform.KsqlProcessingContext) Test(org.junit.Test)

Aggregations

KsqlProcessingContext (io.confluent.ksql.execution.transform.KsqlProcessingContext)1 Test (org.junit.Test)1