@Test public void testIsSystemTopic() { for (String topic : TopicValidator.getSystemTopicSet()) { try { Validators.isSystemTopic(topic); fail("excepted MQClientException for system topic"); } catch (MQClientException e) { assertThat(e.getResponseCode()).isEqualTo(-1); assertThat(e.getErrorMessage()).isEqualTo(String.format("The topic[%s] is conflict with system topic.", topic)); } } }
public static void isSystemTopic(String topic) throws MQClientException { if (TopicValidator.isSystemTopic(topic)) { throw new MQClientException( String.format("The topic[%s] is conflict with system topic.", topic), null); } }
Validators { public static void isSystemTopic(String topic) throws MQClientException { if (TopicValidator.isSystemTopic(topic)) { throw new MQClientException( String.format("The topic[%s] is conflict with system topic.", topic), null); } } }
Validators { public static void isSystemTopic(String topic) throws MQClientException { if (TopicValidator.isSystemTopic(topic)) { throw new MQClientException( String.format("The topic[%s] is conflict with system topic.", topic), null); } }  }
Validators { public static void isSystemTopic(String topic) throws MQClientException { if (TopicValidator.isSystemTopic(topic)) { throw new MQClientException( String.format("The topic[%s] is conflict with system topic.", topic), null); } }  static String getGroupWithRegularExpression(String origin, String patternStr); static void checkGroup(String group); static boolean regularExpressionMatcher(String origin, Pattern pattern); static void checkMessage(Message msg, DefaultMQProducer defaultMQProducer); static void checkTopic(String topic); static void isSystemTopic(String topic); static void isNotAllowedSendTopic(String topic); }
Validators { public static void isSystemTopic(String topic) throws MQClientException { if (TopicValidator.isSystemTopic(topic)) { throw new MQClientException( String.format("The topic[%s] is conflict with system topic.", topic), null); } }  static String getGroupWithRegularExpression(String origin, String patternStr); static void checkGroup(String group); static boolean regularExpressionMatcher(String origin, Pattern pattern); static void checkMessage(Message msg, DefaultMQProducer defaultMQProducer); static void checkTopic(String topic); static void isSystemTopic(String topic); static void isNotAllowedSendTopic(String topic); static final String VALID_PATTERN_STR; static final Pattern PATTERN; static final int CHARACTER_MAX_LENGTH; static final int TOPIC_MAX_LENGTH; }