コード例 #1
0
 @Test
 public void testTopicConfig() {
   TopicConfig testTopicConfig = config.getTopicConfig("testTopic");
   assertNotNull(testTopicConfig);
   assertEquals("testTopic", testTopicConfig.getName());
   assertEquals(1, testTopicConfig.getMessageListenerConfigs().size());
   ListenerConfig listenerConfig = testTopicConfig.getMessageListenerConfigs().get(0);
   assertEquals("com.hazelcast.spring.DummyMessageListener", listenerConfig.getClassName());
 }
コード例 #2
0
 @Test
 public void testTopicConfig() {
   TopicConfig testTopicConfig = config.getTopicConfig("testTopic");
   assertNotNull(testTopicConfig);
   assertEquals("testTopic", testTopicConfig.getName());
   assertEquals(1, testTopicConfig.getMessageListenerConfigs().size());
   assertEquals(true, testTopicConfig.isGlobalOrderingEnabled());
   assertEquals(false, testTopicConfig.isStatisticsEnabled());
   ListenerConfig listenerConfig = testTopicConfig.getMessageListenerConfigs().get(0);
   assertEquals("com.hazelcast.spring.DummyMessageListener", listenerConfig.getClassName());
 }