Package org.mockejb.jms

Examples of org.mockejb.jms.BytesMessageImpl


        assertEquals(propertyName, contentTypeInfo.getPropertyName());
        assertEquals(contentType, contentTypeInfo.getContentType());
    }
   
    public void test1() throws Exception {
        Message message = new BytesMessageImpl();
        message.setStringProperty("contentType", "application/xml");
        assertContentTypeInfo("contentType", "application/xml", message);
       
        assertContentTypeInfo(null, "text/plain", new TextMessageImpl());
        assertContentTypeInfo(null, "application/octet-stream", new BytesMessageImpl());
        assertEquals(null, ruleSet.getContentTypeInfo(new ObjectMessageImpl()));
    }
View Full Code Here


        assertContentTypeInfo(null, "application/octet-stream", new BytesMessageImpl());
        assertEquals(null, ruleSet.getContentTypeInfo(new ObjectMessageImpl()));
    }
   
    public void test2() throws Exception {
        Message message = new BytesMessageImpl();
        message.setStringProperty("contentType", "application/xml");
        assertContentTypeInfo("contentType", "application/xml", message);
       
        message = new TextMessageImpl();
        message.setStringProperty("ctype", "application/xml");
        assertContentTypeInfo("ctype", "application/xml", message);

        assertContentTypeInfo(null, "text/xml", new TextMessageImpl());
        assertContentTypeInfo(null, "text/xml", new BytesMessageImpl());
    }
View Full Code Here

TOP

Related Classes of org.mockejb.jms.BytesMessageImpl

Copyright © 2018 www.massapicom. 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.