@Test public void load() throws Exception { String json = TestSupport.load("errors.json"); final ErrorCollection errors = mapper.readValue(json, ErrorCollection.class); assertTrue(errors.getErrors().size() == 2); }
public List<Error> getErrors() { return errors; }
ErrorCollection { public List<Error> getErrors() { return errors; } }
ErrorCollection { public List<Error> getErrors() { return errors; } ErrorCollection();  ErrorCollection(List<Error> errors); }
ErrorCollection { public List<Error> getErrors() { return errors; } ErrorCollection();  ErrorCollection(List<Error> errors); List<Error> getErrors(); String getType(); }
ErrorCollection { public List<Error> getErrors() { return errors; } ErrorCollection();  ErrorCollection(List<Error> errors); List<Error> getErrors(); String getType();  }