提交 fb34b648 编写于 作者: 斜阳

[ISSUE #2708] Reformat

上级 715a6144
...@@ -108,7 +108,7 @@ public class DefaultMQPushConsumerTest { ...@@ -108,7 +108,7 @@ public class DefaultMQPushConsumerTest {
messageClientExt.setTopic(topic); messageClientExt.setTopic(topic);
messageClientExt.setQueueId(0); messageClientExt.setQueueId(0);
messageClientExt.setMsgId("123"); messageClientExt.setMsgId("123");
messageClientExt.setBody(new byte[]{'a'}); messageClientExt.setBody(new byte[] {'a'});
messageClientExt.setOffsetMsgId("234"); messageClientExt.setOffsetMsgId("234");
messageClientExt.setBornHost(new InetSocketAddress(8080)); messageClientExt.setBornHost(new InetSocketAddress(8080));
messageClientExt.setStoreHost(new InetSocketAddress(8080)); messageClientExt.setStoreHost(new InetSocketAddress(8080));
...@@ -187,7 +187,7 @@ public class DefaultMQPushConsumerTest { ...@@ -187,7 +187,7 @@ public class DefaultMQPushConsumerTest {
MessageExt msg = messageAtomic.get(); MessageExt msg = messageAtomic.get();
assertThat(msg).isNotNull(); assertThat(msg).isNotNull();
assertThat(msg.getTopic()).isEqualTo(topic); assertThat(msg.getTopic()).isEqualTo(topic);
assertThat(msg.getBody()).isEqualTo(new byte[]{'a'}); assertThat(msg.getBody()).isEqualTo(new byte[] {'a'});
} }
@Test @Test
......
...@@ -129,7 +129,7 @@ public class ConsumeMessageConcurrentlyServiceTest { ...@@ -129,7 +129,7 @@ public class ConsumeMessageConcurrentlyServiceTest {
messageClientExt.setTopic(topic); messageClientExt.setTopic(topic);
messageClientExt.setQueueId(0); messageClientExt.setQueueId(0);
messageClientExt.setMsgId("123"); messageClientExt.setMsgId("123");
messageClientExt.setBody(new byte[]{'a'}); messageClientExt.setBody(new byte[] {'a'});
messageClientExt.setOffsetMsgId("234"); messageClientExt.setOffsetMsgId("234");
messageClientExt.setBornHost(new InetSocketAddress(8080)); messageClientExt.setBornHost(new InetSocketAddress(8080));
messageClientExt.setStoreHost(new InetSocketAddress(8080)); messageClientExt.setStoreHost(new InetSocketAddress(8080));
...@@ -182,7 +182,7 @@ public class ConsumeMessageConcurrentlyServiceTest { ...@@ -182,7 +182,7 @@ public class ConsumeMessageConcurrentlyServiceTest {
MessageExt msg = messageAtomic.get(); MessageExt msg = messageAtomic.get();
assertThat(msg).isNotNull(); assertThat(msg).isNotNull();
assertThat(msg.getTopic()).isEqualTo(topic); assertThat(msg.getTopic()).isEqualTo(topic);
assertThat(msg.getBody()).isEqualTo(new byte[]{'a'}); assertThat(msg.getBody()).isEqualTo(new byte[] {'a'});
} }
@After @After
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册