Package org.servicemix.ws.notification.impl

Source Code of org.servicemix.ws.notification.impl.TopicExpressionConverterTest

package org.servicemix.ws.notification.impl;

import org.activemq.message.ActiveMQTopic;
import org.servicemix.ws.xmlbeans.notification.base.TopicExpressionType;
import org.servicemix.ws.notification.impl.TopicExpressionConverter;

import junit.framework.TestCase;

public class TopicExpressionConverterTest extends TestCase {
   
    public void testConvert() {
        ActiveMQTopic topic1 = new ActiveMQTopic("Hello");
        TopicExpressionType type = TopicExpressionConverter.toTopicExpression(topic1);
        ActiveMQTopic topic2 = TopicExpressionConverter.toActiveMQTopic(type);
        assertEquals(topic1, topic2);       
    }

    public static void main(String[] args) {
        junit.textui.TestRunner.run(TopicExpressionConverterTest.class);
    }

}
TOP

Related Classes of org.servicemix.ws.notification.impl.TopicExpressionConverterTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.