Package org.apache.qpid.client.message

Examples of org.apache.qpid.client.message.JMSStreamMessage.readString()


    public void testLongConversions() throws Exception
    {
        JMSStreamMessage bm = TestMessageHelper.newJMSStreamMessage();
        bm.writeLong(1678);
        bm.reset();
        assertEquals("1678", bm.readString());
        bm.reset();
        checkConversionsFail(bm, new int[]{0, 1, 2, 3, 4, 6, 7, 9});
    }

    public void testFloatConversions() throws Exception
View Full Code Here


        JMSStreamMessage bm = TestMessageHelper.newJMSStreamMessage();
        bm.writeFloat(6.2f);
        bm.reset();
        assertEquals(6.2d, bm.readDouble(), 0.01);
        bm.reset();
        assertEquals("6.2", bm.readString());
        bm.reset();
        checkConversionsFail(bm, new int[]{0, 1, 2, 3, 4, 5, 9});
    }

    public void testDoubleConversions() throws Exception
View Full Code Here

    public void testDoubleConversions() throws Exception
    {
        JMSStreamMessage bm = TestMessageHelper.newJMSStreamMessage();
        bm.writeDouble(88.35d);
        bm.reset();
        assertEquals("88.35", bm.readString());
        bm.reset();
        checkConversionsFail(bm, new int[]{0, 1, 2, 3, 4, 5, 6, 9});
    }

    public void testStringConversions() throws Exception
View Full Code Here

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.