@Test public void testResponseCode() throws Exception { assertEquals(HttpValueFunctions.responseCode().apply(response), Integer.valueOf(responseCode)); }
public static Function<HttpToolResponse, Integer> responseCode() { return new ResponseCode(); }
HttpValueFunctions { public static Function<HttpToolResponse, Integer> responseCode() { return new ResponseCode(); } }
HttpValueFunctions { public static Function<HttpToolResponse, Integer> responseCode() { return new ResponseCode(); } private  HttpValueFunctions(); }
HttpValueFunctions { public static Function<HttpToolResponse, Integer> responseCode() { return new ResponseCode(); } private  HttpValueFunctions(); static Function<HttpToolResponse, Integer> responseCode(); static Function<HttpToolResponse, Boolean> responseCodeEquals(final int expected); static Function<HttpToolResponse, Boolean> responseCodeEquals(final int... expected); static Function<HttpToolResponse, String> stringContentsFunction(); static Function<HttpToolResponse, JsonElement> jsonContents(); static Function<HttpToolResponse, T> jsonContents(String element, Class<T> expected); static Function<HttpToolResponse, T> jsonContents(String[] elements, Class<T> expected); static Function<HttpToolResponse, T> jsonContentsFromPath(String path); static Function<HttpToolResponse, Long> latency(); static Function<HttpToolResponse, Boolean> containsHeader(String header); @Deprecated static Function<A,C> chain(final Function<A,? extends B> f1, final Function<B,C> f2); @Deprecated static Function<A,D> chain(final Function<A,? extends B> f1, final Function<B,? extends C> f2, final Function<C,D> f3); @Deprecated static Function<A,E> chain(final Function<A,? extends B> f1, final Function<B,? extends C> f2, final Function<C,? extends D> f3, final Function<D,E> f4); }
HttpValueFunctions { public static Function<HttpToolResponse, Integer> responseCode() { return new ResponseCode(); } private  HttpValueFunctions(); static Function<HttpToolResponse, Integer> responseCode(); static Function<HttpToolResponse, Boolean> responseCodeEquals(final int expected); static Function<HttpToolResponse, Boolean> responseCodeEquals(final int... expected); static Function<HttpToolResponse, String> stringContentsFunction(); static Function<HttpToolResponse, JsonElement> jsonContents(); static Function<HttpToolResponse, T> jsonContents(String element, Class<T> expected); static Function<HttpToolResponse, T> jsonContents(String[] elements, Class<T> expected); static Function<HttpToolResponse, T> jsonContentsFromPath(String path); static Function<HttpToolResponse, Long> latency(); static Function<HttpToolResponse, Boolean> containsHeader(String header); @Deprecated static Function<A,C> chain(final Function<A,? extends B> f1, final Function<B,C> f2); @Deprecated static Function<A,D> chain(final Function<A,? extends B> f1, final Function<B,? extends C> f2, final Function<C,D> f3); @Deprecated static Function<A,E> chain(final Function<A,? extends B> f1, final Function<B,? extends C> f2, final Function<C,? extends D> f3, final Function<D,E> f4);  }