use of io.confluent.ksql.rest.server.mock.MockKafkaTopicClient in project ksql by confluentinc.
the class StatementExecutorTest method setUp.
@Before
public void setUp() {
Map<String, Object> props = new HashMap<>();
props.put("application.id", "ksqlStatementExecutorTest");
props.put("bootstrap.servers", CLUSTER.bootstrapServers());
ksqlEngine = new KsqlEngine(new KsqlConfig(props), new MockKafkaTopicClient());
StatementParser statementParser = new StatementParser(ksqlEngine);
statementExecutor = new StatementExecutor(ksqlEngine, statementParser);
}
use of io.confluent.ksql.rest.server.mock.MockKafkaTopicClient in project ksql by confluentinc.
the class KsqlResourceTest method setUp.
@Before
public void setUp() throws IOException, RestClientException {
SchemaRegistryClient schemaRegistryClient = new MockSchemaRegistryClient();
registerSchema(schemaRegistryClient);
ksqlRestConfig = new KsqlRestConfig(TestKsqlResourceUtil.getDefaultKsqlConfig());
KsqlConfig ksqlConfig = new KsqlConfig(ksqlRestConfig.getKsqlConfigProperties());
ksqlEngine = new KsqlEngine(ksqlConfig, new MockKafkaTopicClient(), schemaRegistryClient, new MetaStoreImpl());
}
Aggregations