本文整理汇总了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