Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import org.apache.rocketmq.tools.command.auth.ListUserSubCommand;
import org.apache.rocketmq.tools.command.auth.UpdateAclSubCommand;
import org.apache.rocketmq.tools.command.auth.UpdateUserSubCommand;
import org.apache.rocketmq.tools.command.broker.BrokerConsumeStatsSubCommad;
import org.apache.rocketmq.tools.command.broker.BrokerConsumeStatsSubCommand;
import org.apache.rocketmq.tools.command.broker.BrokerStatusSubCommand;
import org.apache.rocketmq.tools.command.broker.CleanExpiredCQSubCommand;
import org.apache.rocketmq.tools.command.broker.CleanUnusedTopicCommand;
Expand Down Expand Up @@ -220,7 +220,7 @@ public static void initCommand() {
initCommand(new PrintMessageSubCommand());
initCommand(new PrintMessageByQueueCommand());
initCommand(new SendMsgStatusCommand());
initCommand(new BrokerConsumeStatsSubCommad());
initCommand(new BrokerConsumeStatsSubCommand());

initCommand(new ProducerConnectionSubCommand());
initCommand(new ConsumerConnectionSubCommand());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.apache.rocketmq.tools.command.SubCommand;
import org.apache.rocketmq.tools.command.SubCommandException;

public class BrokerConsumeStatsSubCommad implements SubCommand {
public class BrokerConsumeStatsSubCommand implements SubCommand {

private DefaultMQAdminExt defaultMQAdminExt;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

public class BrokerConsumeStatsSubCommadTest {
public class BrokerConsumeStatsSubCommandTest {

private static BrokerConsumeStatsSubCommad cmd = new BrokerConsumeStatsSubCommad();
private static BrokerConsumeStatsSubCommand cmd = new BrokerConsumeStatsSubCommand();

private static DefaultMQAdminExt defaultMQAdminExt;
private static DefaultMQAdminExtImpl defaultMQAdminExtImpl;
Expand Down Expand Up @@ -83,7 +83,7 @@ public static void terminate() {
@Test
public void testExecute() throws SubCommandException, IllegalAccessException, NoSuchFieldException {

Field field = BrokerConsumeStatsSubCommad.class.getDeclaredField("defaultMQAdminExt");
Field field = BrokerConsumeStatsSubCommand.class.getDeclaredField("defaultMQAdminExt");
field.setAccessible(true);
field.set(cmd, defaultMQAdminExt);

Expand Down
Loading