Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2011
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. The Java unit test:
  2. public void testAnimation() throws JsonParseException, JsonMappingException, IOException {
  3. ObjectMapper mapper = new ObjectMapper();
  4. Animation animation = mapper.readValue(new File("data/entityTest.json"), Animation.class);
  5. }
  6.  
  7. The JSON:
  8. {
  9. "frames" : [ {
  10. "ref" : "data/bullet.jpg"
  11. } ],
  12. "duration" : 1
  13. }
  14.  
  15. The error:
  16. org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "frames" (Class org.newdawn.slick.Animation), not marked as ignorable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement