Package org.jsmpp.bean

Examples of org.jsmpp.bean.DataCoding


                Alphabet.ALPHA_DEFAULT);
        byte expected = (byte)0xd3;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here


                Alphabet.ALPHA_DEFAULT);
        byte expected = (byte)0xd8;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here

                Alphabet.ALPHA_DEFAULT);
        byte expected = (byte)0xd9;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here

                Alphabet.ALPHA_DEFAULT);
        byte expected = (byte)0xda;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here

                Alphabet.ALPHA_DEFAULT);
        byte expected = (byte)0xdb;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here

        // 11110000
        SimpleDataCoding dataCoding = new SimpleDataCoding(Alphabet.ALPHA_DEFAULT, MessageClass.CLASS0);
        byte expected = (byte)0xf0;
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
    }
View Full Code Here

        // 11110001
        SimpleDataCoding dataCoding = new SimpleDataCoding(Alphabet.ALPHA_DEFAULT, MessageClass.CLASS1);
        byte expected = (byte)0xf1;
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
    }
View Full Code Here

        // 11110010
        SimpleDataCoding dataCoding = new SimpleDataCoding(Alphabet.ALPHA_DEFAULT, MessageClass.CLASS2);
        byte expected = (byte)0xf2;
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
    }
View Full Code Here

        // 11110011
        SimpleDataCoding dataCoding = new SimpleDataCoding(Alphabet.ALPHA_DEFAULT, MessageClass.CLASS3);
        byte expected = (byte)0xf3;
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
    }
View Full Code Here

        // 11110100
        SimpleDataCoding dataCoding = new SimpleDataCoding(Alphabet.ALPHA_8_BIT, MessageClass.CLASS0);
        byte expected = (byte)0xf4;
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
    }
View Full Code Here

TOP

Related Classes of org.jsmpp.bean.DataCoding

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.