當前位置: 首頁>>代碼示例>>Java>>正文


Java DataCodings.newInstance方法代碼示例

本文整理匯總了Java中org.jsmpp.bean.DataCodings.newInstance方法的典型用法代碼示例。如果您正苦於以下問題:Java DataCodings.newInstance方法的具體用法?Java DataCodings.newInstance怎麽用?Java DataCodings.newInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.jsmpp.bean.DataCodings的用法示例。


在下文中一共展示了DataCodings.newInstance方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: messageWaitingDiscardMessageInactiveVoicemail

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@Test
public void messageWaitingDiscardMessageInactiveVoicemail() {
    // 11010000
    MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
            IndicationSense.INACTIVE,
            IndicationType.VOICEMAIL_MESSAGE_WAITING,
            Alphabet.ALPHA_DEFAULT);
    byte expected = (byte)0xd0;

    assertEquals(dataCoding.toByte(), expected, "Datacoding differs");
    
    DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
    assertEquals(buildedInstance, dataCoding);
    
    assertTrue(dataCoding.isStoreMessage());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaDefaultTest.java

示例2: messageWaitingDiscardMessageInactiveFax

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaDefaultTest.java

示例3: messageWaitingDiscardMessageInactiveElecmail

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaDefaultTest.java

示例4: messageWaitingDiscardMessageInactiveOther

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaDefaultTest.java

示例5: messageWaitingDiscardMessageActiveVoicemail

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaDefaultTest.java

示例6: messageWaitingDiscardMessageActiveFax

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaDefaultTest.java

示例7: messageWaitingDiscardMessageActiveElecmail

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaDefaultTest.java

示例8: messageWaitingDiscardMessageActiveOther

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaDefaultTest.java

示例9: messageWaitingDiscardMessageActiveFax

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaUCS2Test.java

示例10: messageWaitingDiscardMessageActiveElecmail

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaUCS2Test.java

示例11: messageWaitingDiscardMessageActiveVoicemail

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaUCS2Test.java

示例12: messageWaitingDiscardMessageActiveOther

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaUCS2Test.java

示例13: messageWaitingDiscardMessageInactiveVoicemail

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@Test
public void messageWaitingDiscardMessageInactiveVoicemail() {
    // 11100000
    MessageWaitingDataCoding dataCoding = new MessageWaitingDataCoding(
            IndicationSense.INACTIVE,
            IndicationType.VOICEMAIL_MESSAGE_WAITING,
            Alphabet.ALPHA_UCS2);
    byte expected = (byte)0xe0;

    assertEquals(dataCoding.toByte(), expected, "Datacoding differs");
    
    DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte());
    assertEquals(buildedInstance, dataCoding);
    
    assertTrue(dataCoding.isStoreMessage());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaUCS2Test.java

示例14: messageWaitingDiscardMessageInactiveFax

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaUCS2Test.java

示例15: messageWaitingDiscardMessageInactiveElecmail

import org.jsmpp.bean.DataCodings; //導入方法依賴的package包/類
@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());
}
 
開發者ID:opentelecoms-org,項目名稱:jsmpp,代碼行數:17,代碼來源:MessageWaitingDataCodingStoreMessageAlphaUCS2Test.java


注:本文中的org.jsmpp.bean.DataCodings.newInstance方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。