[ROCKETMQ-54] Polish unit test for nameserver
Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/commit/09439f7e Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/tree/09439f7e Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/diff/09439f7e Branch: refs/heads/ROCKETMQ-54 Commit: 09439f7ef3cc8b36e0a438f66a8b158184ce6a31 Parents: b8ee0fb Author: stevenschew <[email protected]> Authored: Sun Jan 22 18:07:27 2017 +0800 Committer: stevenschew <[email protected]> Committed: Sun Jan 22 18:07:27 2017 +0800 ---------------------------------------------------------------------- .../java/org/apache/rocketmq/namesrv/NamesrvControllerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-rocketmq/blob/09439f7e/namesrv/src/test/java/org/apache/rocketmq/namesrv/NamesrvControllerTest.java ---------------------------------------------------------------------- diff --git a/namesrv/src/test/java/org/apache/rocketmq/namesrv/NamesrvControllerTest.java b/namesrv/src/test/java/org/apache/rocketmq/namesrv/NamesrvControllerTest.java index 215d051..2c1807a 100644 --- a/namesrv/src/test/java/org/apache/rocketmq/namesrv/NamesrvControllerTest.java +++ b/namesrv/src/test/java/org/apache/rocketmq/namesrv/NamesrvControllerTest.java @@ -23,7 +23,7 @@ import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class NamesrvControllerTest { - private final int RESTART_NUM = 2; + private final static int RESTARTNUM = 2; /** * Tests if the controller can be properly stopped and started. @@ -32,7 +32,7 @@ public class NamesrvControllerTest { */ @Test public void testRestart() throws Exception { - for (int i = 0; i < RESTART_NUM; i++) { + for (int i = 0; i < RESTARTNUM; i++) { NamesrvController namesrvController = new NamesrvController( new NamesrvConfig(), new NettyServerConfig()
