コード例 #1
0
  @Test
  public void shouldGetAllArtifactsBundles() {
    given(this.baseClient.executeRequest(any(Request.class), any(Type.class)))
        .willReturn(new ResourceCollection<>());

    client.getAll();

    Request expectedRequest = new Request(HttpMethod.GET, ARTIFACTS_BUNDLE_URI);

    then(baseClient)
        .should()
        .executeRequest(
            expectedRequest, new TypeToken<ResourceCollection<ArtifactsBundle>>() {}.getType());
  }