RongtongJin commented on a change in pull request #170: [ISSUE #88] Consumer 
Batch API
URL: https://github.com/apache/rocketmq-spring/pull/170#discussion_r359185084
 
 

 ##########
 File path: 
rocketmq-spring-boot/src/test/java/org/apache/rocketmq/spring/support/DefaultRocketMQListenerContainerTest.java
 ##########
 @@ -46,6 +69,180 @@ public void onMessage(MessageExt message) {
         result = (Class) getMessageType.invoke(listenerContainer);
         assertThat(result.getName().equals(MessageExt.class.getName()));
     }
+
+    @Test
+    public void testSelectorType() throws Exception {
+        DefaultRocketMQListenerContainer listenerContainer = new 
DefaultRocketMQListenerContainer();
+        listenerContainer.setConsumer(new DefaultMQPushConsumer());
+        Method initSelectorType = 
DefaultRocketMQListenerContainer.class.getDeclaredMethod("initSelectorType");
+        initSelectorType.setAccessible(true);
+
+        try {
+            
listenerContainer.setRocketMQMessageListener(TagClass.class.getAnnotation(RocketMQMessageListener.class));
+            initSelectorType.invoke(listenerContainer);
+
+            
listenerContainer.setRocketMQMessageListener(SQL92Class.class.getAnnotation(RocketMQMessageListener.class));
+            initSelectorType.invoke(listenerContainer);
+        } catch (Exception e) {
+
+        }
+    }
 
 Review comment:
   Lack of assertion

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to