Package org.jsmpp.bean

Examples of org.jsmpp.bean.MessageWaitingDataCoding


    }
   
    @Test
    public void messageWaitingDiscardMessageInactiveElecmail() {
        // 11000010
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.ELECTRONIC_MESSAGE_WAITING);
        byte expected = (byte)0xc2;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertFalse(dataCoding.isStoreMessage());
    }
View Full Code Here


    }
   
    @Test
    public void messageWaitingDiscardMessageInactiveOther() {
        // 11000011
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.OTHER_MESSAGE_WAITING);
        byte expected = (byte)0xc3;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertFalse(dataCoding.isStoreMessage());
    }
View Full Code Here

    }
   
    @Test
    public void messageWaitingDiscardMessageActiveVoicemail() {
        // 11001000
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.ACTIVE,
                IndicationType.VOICEMAIL_MESSAGE_WAITING);
        byte expected = (byte)0xc8;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertFalse(dataCoding.isStoreMessage());
    }
View Full Code Here

    }
   
    @Test
    public void messageWaitingDiscardMessageActiveFax() {
        // 11001001
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.ACTIVE,
                IndicationType.FAX_MESSAGE_WAITING);
        byte expected = (byte)0xc9;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertFalse(dataCoding.isStoreMessage());
    }
View Full Code Here

    }
   
    @Test
    public void messageWaitingDiscardMessageActiveElecmail() {
        // 11001010
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.ACTIVE,
                IndicationType.ELECTRONIC_MESSAGE_WAITING);
        byte expected = (byte)0xca;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertFalse(dataCoding.isStoreMessage());
    }
View Full Code Here

    }
   
    @Test
    public void messageWaitingDiscardMessageActiveOther() {
        // 11001011
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.ACTIVE,
                IndicationType.OTHER_MESSAGE_WAITING);
        byte expected = (byte)0xcb;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertFalse(dataCoding.isStoreMessage());
    }
View Full Code Here

public class MessageWaitingDataCodingStoreMessageAlphaDefaultTest {
   
    @Test
    public void messageWaitingDiscardMessageInactiveVoicemail() {
        // 11010000
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.VOICEMAIL_MESSAGE_WAITING,
                Alphabet.ALPHA_DEFAULT);
        byte expected = (byte)0xd0;
       
        System.out.println(0xff & expected);
        System.out.println(0xff & dataCoding.toByte());
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here

    }
   
    @Test
    public void messageWaitingDiscardMessageInactiveFax() {
        // 11010001
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.FAX_MESSAGE_WAITING,
                Alphabet.ALPHA_DEFAULT);
        byte expected = (byte)0xd1;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here

    }
   
    @Test
    public void messageWaitingDiscardMessageInactiveElecmail() {
        // 11010010
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.ELECTRONIC_MESSAGE_WAITING,
                Alphabet.ALPHA_DEFAULT);
        byte expected = (byte)0xd2;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here

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

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.