use of com.android.internal.telephony.uicc.asn1.InvalidAsn1DataException in project android_frameworks_opt_telephony by LineageOS.
the class Asn1NodeTest method testAsBits_ConstructedTag.
@SmallTest
@Test(expected = IllegalStateException.class)
public void testAsBits_ConstructedTag() throws InvalidAsn1DataException {
Asn1Node node = Asn1Node.newBuilder(0xBF37).build();
node.asBits();
}
use of com.android.internal.telephony.uicc.asn1.InvalidAsn1DataException in project android_frameworks_opt_telephony by LineageOS.
the class Asn1NodeTest method testAsInteger_ConstructedTag.
@SmallTest
@Test(expected = IllegalStateException.class)
public void testAsInteger_ConstructedTag() throws InvalidAsn1DataException {
Asn1Node node = Asn1Node.newBuilder(0xBF37).build();
node.asInteger();
}
use of com.android.internal.telephony.uicc.asn1.InvalidAsn1DataException in project android_frameworks_opt_telephony by LineageOS.
the class Asn1NodeTest method testAsBoolean_InvalidData.
@SmallTest
@Test(expected = InvalidAsn1DataException.class)
public void testAsBoolean_InvalidData() throws TagNotFoundException, InvalidAsn1DataException {
Asn1Node node = Asn1Node.newBuilder(0xBF37).addChildAsString(1, "1").build();
node.getChild(1).asBoolean();
}
Aggregations