Search in sources :

Example 1 with PartitionManager

use of io.confluent.kafkarest.controllers.PartitionManager in project kafka-rest by confluentinc.

the class PartitionsResourceTest method configure.

@Override
protected Application configure() {
    partitionManager = createMock(PartitionManager.class);
    ResourceConfig application = new ResourceConfig();
    application.register(new PartitionsResource(() -> partitionManager));
    application.register(new JacksonMessageBodyProvider());
    return application;
}
Also used : JacksonMessageBodyProvider(io.confluent.rest.validation.JacksonMessageBodyProvider) PartitionsResource(io.confluent.kafkarest.resources.v2.PartitionsResource) PartitionManager(io.confluent.kafkarest.controllers.PartitionManager) ResourceConfig(org.glassfish.jersey.server.ResourceConfig)

Aggregations

PartitionManager (io.confluent.kafkarest.controllers.PartitionManager)1 PartitionsResource (io.confluent.kafkarest.resources.v2.PartitionsResource)1 JacksonMessageBodyProvider (io.confluent.rest.validation.JacksonMessageBodyProvider)1 ResourceConfig (org.glassfish.jersey.server.ResourceConfig)1