use of org.openmuc.jasn1.compiler.tagging_test.ImplicitlyRetaggedTaggedChoice in project jasn1 by openmuc.
the class TaggingTest method implicitlyRetaggedTaggedChoiceTest.
@Test
public void implicitlyRetaggedTaggedChoiceTest() throws Exception {
ImplicitlyRetaggedTaggedChoice choice = new ImplicitlyRetaggedTaggedChoice();
choice.setMyInteger(new BerInteger(1));
ReverseByteArrayOutputStream os = new ReverseByteArrayOutputStream(1000);
choice.encode(os);
Assert.assertArrayEquals(DatatypeConverter.parseHexBinary("A303020101"), os.getArray());
}
Aggregations