Package org.jsmpp.bean

Examples of org.jsmpp.bean.MessageWaitingDataCoding


    }
   
    @Test
    public void messageWaitingDiscardMessageActiveVoicemail() {
        // 11011000
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.ACTIVE,
                IndicationType.VOICEMAIL_MESSAGE_WAITING,
                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


    }
   
    @Test
    public void messageWaitingDiscardMessageActiveFax() {
        // 11011001
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.ACTIVE,
                IndicationType.FAX_MESSAGE_WAITING,
                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

    }
   
    @Test
    public void messageWaitingDiscardMessageActiveElecmail() {
        // 11011010
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.ACTIVE,
                IndicationType.ELECTRONIC_MESSAGE_WAITING,
                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

    }
   
    @Test
    public void messageWaitingDiscardMessageActiveOther() {
        // 11011011
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.ACTIVE,
                IndicationType.OTHER_MESSAGE_WAITING,
                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

TOP

Related Classes of org.jsmpp.bean.MessageWaitingDataCoding

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.