Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoran10 committed Jun 7, 2021
1 parent c5eb9fe commit 44012e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package io.streamnative.pulsar.handlers.amqp.test;

import static org.mockito.Mockito.mock;

import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPipeline;
Expand Down Expand Up @@ -68,8 +70,6 @@
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;

import static org.mockito.Mockito.mock;

/**
* Base test for AMQP protocol tests.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,17 @@ public CompletableFuture<ZooKeeper> create(String serverList, SessionType sessio
private BookKeeperClientFactory mockBookKeeperClientFactory = new BookKeeperClientFactory() {

@Override
public BookKeeper create(ServiceConfiguration conf, ZooKeeper zkClient, EventLoopGroup eventLoopGroup, Optional<Class<? extends EnsemblePlacementPolicy>> ensemblePlacementPolicyClass, Map<String, Object> ensemblePlacementPolicyProperties) throws IOException {
public BookKeeper create(ServiceConfiguration conf, ZooKeeper zkClient, EventLoopGroup eventLoopGroup,
Optional<Class<? extends EnsemblePlacementPolicy>> ensemblePlacementPolicyClass,
Map<String, Object> ensemblePlacementPolicyProperties) throws IOException {
return mockBookKeeper;
}

@Override
public BookKeeper create(ServiceConfiguration conf, ZooKeeper zkClient, EventLoopGroup eventLoopGroup, Optional<Class<? extends EnsemblePlacementPolicy>> ensemblePlacementPolicyClass, Map<String, Object> ensemblePlacementPolicyProperties, StatsLogger statsLogger) throws IOException {
public BookKeeper create(ServiceConfiguration conf, ZooKeeper zkClient, EventLoopGroup eventLoopGroup,
Optional<Class<? extends EnsemblePlacementPolicy>> ensemblePlacementPolicyClass,
Map<String, Object> ensemblePlacementPolicyProperties, StatsLogger statsLogger)
throws IOException {
return mockBookKeeper;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package io.streamnative.pulsar.handlers.amqp.test;

import static org.mockito.Mockito.mock;

import io.netty.channel.EventLoopGroup;
import io.streamnative.pulsar.handlers.amqp.AbstractAmqpExchange;
import io.streamnative.pulsar.handlers.amqp.impl.PersistentExchange;
Expand All @@ -26,8 +28,6 @@
import org.mockito.Mockito;
import org.testng.annotations.Test;

import static org.mockito.Mockito.mock;

/**
* Exchange and queue topic name validation test.
*/
Expand Down

0 comments on commit 44012e0

Please sign in to comment.