提交 63803056 编写于 作者: W Willem Jiang

ROCKETMQ-3 Clean up the unit test code of rocketmq-client

上级 2aaf036e
......@@ -17,6 +17,7 @@
package com.alibaba.rocketmq.client;
import com.alibaba.rocketmq.client.exception.MQClientException;
import org.junit.Assert;
import org.junit.Test;
......@@ -24,16 +25,11 @@ import org.junit.Test;
public class ValidatorsTest {
@Test
public void topicValidatorTest() {
try {
public void topicValidatorTest() throws MQClientException {
Validators.checkTopic("Hello");
Validators.checkTopic("%RETRY%Hello");
Validators.checkTopic("_%RETRY%Hello");
Validators.checkTopic("-%RETRY%Hello");
Validators.checkTopic("223-%RETRY%Hello");
} catch (Exception e) {
e.printStackTrace();
Assert.assertTrue(false);
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册