Package org.jsmpp.bean

Examples of org.jsmpp.bean.MessageWaitingDataCoding


public class MessageWaitingDataCodingStoreMessageAlphaUCS2Test {
   
    @Test
    public void messageWaitingDiscardMessageInactiveVoicemail() {
        // 11100000
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.VOICEMAIL_MESSAGE_WAITING,
                Alphabet.ALPHA_UCS2);
        byte expected = (byte)0xe0;
       
        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() {
        // 11100001
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.FAX_MESSAGE_WAITING,
                Alphabet.ALPHA_UCS2);
        byte expected = (byte)0xe1;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertTrue(dataCoding.isStoreMessage());
    }
View Full Code Here

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

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

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

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

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

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

public class MessageWaitingDataCodingDiscardMessageTest {
   
    @Test
    public void messageWaitingDiscardMessageInactiveVoicemail() {
        // 11000000
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.VOICEMAIL_MESSAGE_WAITING);
        byte expected = (byte)0xc0;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertFalse(dataCoding.isStoreMessage());
    }
View Full Code Here

    }
   
    @Test
    public void messageWaitingDiscardMessageInactiveFax() {
        // 11000001
        MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
                IndicationSense.INACTIVE,
                IndicationType.FAX_MESSAGE_WAITING);
        byte expected = (byte)0xc1;
       
        assertEquals(dataCoding.toByte(), expected);
       
        DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
        assertEquals(buildedInstance, dataCoding);
       
        assertFalse(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.