Package com.getperka.flatpack.codexes

Examples of com.getperka.flatpack.codexes.AnnotationInfo


    JsonElement elt = packer.pack(entity);
    elt.getAsJsonObject().get("value").getAsJsonObject().addProperty("@", "UnknownType");

    Annotation a = unpacker.<Annotation> unpack(Annotation.class, elt, null).getValue();
    assertTrue(a instanceof UnknownAnnotation);
    AnnotationInfo info = (AnnotationInfo) a;
    assertEquals("UnknownType", info.getAnnotationTypeName());
    assertEquals(5, ((Number) info.getAnnotationValues().get("i")).intValue());
  }
View Full Code Here

TOP

Related Classes of com.getperka.flatpack.codexes.AnnotationInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.