Example #1
0
  @Test
  public void testFormat() {
    A10ClientImpl c = Mockito.mock(A10ClientImpl.class);

    RequestBuilder b = new RequestBuilder(c, "test");

    Assertions.assertThat(b.getParams()).doesNotContainKey("format");

    assertThat(b.withXmlRequest().getParams()).containsEntry("format", "xml");
    assertThat(b.withJsonRequest().getParams()).containsEntry("format", "json");
  }