@Test public void testParseResponseOk() throws IOException { try (InputStream in = getClass().getResourceAsStream("/responseOk.json")) { Response response = monitor.parse(in); assertEquals("1.0", response.getVersion()); assertEquals("OK", response.getStatus()); assertNotNull(response.getResult()); assertEquals(81, response.getResult().size()); } }
protected Response parse(final InputStream in) throws IOException { return om.readValue(in, Response.class); }
SpatineoMonitorDao { protected Response parse(final InputStream in) throws IOException { return om.readValue(in, Response.class); } }
SpatineoMonitorDao { protected Response parse(final InputStream in) throws IOException { return om.readValue(in, Response.class); } SpatineoMonitorDao(String endPoint, String key);  SpatineoMonitorDao(String endPoint, String key,
            boolean allMeters, boolean lean);  SpatineoMonitorDao(String endPoint, String key,
            boolean allMeters, boolean lean, ObjectMapper om); }
SpatineoMonitorDao { protected Response parse(final InputStream in) throws IOException { return om.readValue(in, Response.class); } SpatineoMonitorDao(String endPoint, String key);  SpatineoMonitorDao(String endPoint, String key,
            boolean allMeters, boolean lean);  SpatineoMonitorDao(String endPoint, String key,
            boolean allMeters, boolean lean, ObjectMapper om); Response query(); }
SpatineoMonitorDao { protected Response parse(final InputStream in) throws IOException { return om.readValue(in, Response.class); } SpatineoMonitorDao(String endPoint, String key);  SpatineoMonitorDao(String endPoint, String key,
            boolean allMeters, boolean lean);  SpatineoMonitorDao(String endPoint, String key,
            boolean allMeters, boolean lean, ObjectMapper om); Response query();  }