@Test public void testBuilderJson() { final NakadiClient client = TestSupport.newNakadiClient(); assertTrue(client.jsonSupport() != null); final String event = TestSupport.load("batch-1.json"); final Map map = client.jsonSupport().fromJson(event, Map.class); assertTrue(map.containsKey("cursor")); assertTrue(map.containsKey("events")); assertTrue(((List) map.get("events")).size() == 2); }
public JsonSupport jsonSupport() { return jsonSupport; }
NakadiClient { public JsonSupport jsonSupport() { return jsonSupport; } }
NakadiClient { public JsonSupport jsonSupport() { return jsonSupport; } private  NakadiClient(Builder builder); }
NakadiClient { public JsonSupport jsonSupport() { return jsonSupport; } private  NakadiClient(Builder builder); static Builder newBuilder(); URI baseURI(); ResourceProvider resourceProvider(); TokenProvider resourceTokenProvider(); JsonSupport jsonSupport(); MetricCollector metricCollector(); String certificatePath(); Resources resources(); }
NakadiClient { public JsonSupport jsonSupport() { return jsonSupport; } private  NakadiClient(Builder builder); static Builder newBuilder(); URI baseURI(); ResourceProvider resourceProvider(); TokenProvider resourceTokenProvider(); JsonSupport jsonSupport(); MetricCollector metricCollector(); String certificatePath(); Resources resources();  }