use of org.openmuc.jasn1.compiler.tagging_test.ImplicitlyTaggedInteger in project jasn1 by openmuc.
the class TaggingTest method implicitlyTaggedIntegerTest.
@Test
public void implicitlyTaggedIntegerTest() throws Exception {
ImplicitlyTaggedInteger implicitlyTaggedInteger = new ImplicitlyTaggedInteger(1);
ReverseByteArrayOutputStream os = new ReverseByteArrayOutputStream(1000);
implicitlyTaggedInteger.encode(os);
Assert.assertArrayEquals(DatatypeConverter.parseHexBinary("9F210101"), os.getArray());
}
Aggregations