use of sun.security.krb5.Asn1Exception in project jmulticard by ctt-gob-es.
the class TestDerBoolean method testCheckTagWithWrongTagMustThrowException.
/**
* Test method for {@link es.gob.jmulticard.asn1.DecoderObject#checkTag(byte)}.
*/
public static final void testCheckTagWithWrongTagMustThrowException() {
try {
final DerBoolean db = new DerBoolean();
db.checkTag((byte) 0x02);
} catch (final Exception e) {
if (!(e instanceof Asn1Exception)) {
// $NON-NLS-1$ //$NON-NLS-2$
Assert.fail("Se esperaba " + Asn1Exception.class.getName() + " pero se obtuvo " + e.getClass().getName());
}
}
}
Aggregations