use of org.cloudfoundry.client.v3.packages.Packages in project cf-java-client by cloudfoundry.
the class PaginationUtilsTest method requestClientV3Empty.
@Test
public void requestClientV3Empty() {
Packages packages = mock(Packages.class, RETURNS_SMART_NULLS);
requestListPackagesEmpty(packages);
PaginationUtils.requestClientV3Resources(page -> packages.list(ListPackagesRequest.builder().page(page).build())).as(StepVerifier::create).expectComplete().verify(Duration.ofSeconds(1));
}
use of org.cloudfoundry.client.v3.packages.Packages in project cf-java-client by cloudfoundry.
the class PaginationUtilsTest method requestClientV3Resources.
@Test
public void requestClientV3Resources() {
Packages packages = mock(Packages.class, RETURNS_SMART_NULLS);
requestListPackages(packages, 1, 3);
requestListPackages(packages, 2, 3);
requestListPackages(packages, 3, 3);
PaginationUtils.requestClientV3Resources(page -> packages.list(ListPackagesRequest.builder().page(page).build())).as(StepVerifier::create).expectNextCount(3).expectComplete().verify(Duration.ofSeconds(1));
}
Aggregations