use of org.mockito.Mockito.RETURNS_SMART_NULLS 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.mockito.Mockito.RETURNS_SMART_NULLS in project cf-java-client by cloudfoundry.
the class PaginationUtilsTest method requestClientV2ResourcesEmpty.
@Test
public void requestClientV2ResourcesEmpty() {
Spaces spaces = mock(Spaces.class, RETURNS_SMART_NULLS);
requestListSpacesEmpty(spaces);
PaginationUtils.requestClientV2Resources(page -> spaces.list(ListSpacesRequest.builder().page(page).build())).as(StepVerifier::create).expectComplete().verify(Duration.ofSeconds(1));
}
use of org.mockito.Mockito.RETURNS_SMART_NULLS in project cf-java-client by cloudfoundry.
the class PaginationUtilsTest method requestUaaResourcesEmpty.
@Test
public void requestUaaResourcesEmpty() {
Users users = mock(Users.class, RETURNS_SMART_NULLS);
requestListUsersEmpty(users, 1, 100);
PaginationUtils.requestUaaResources(startIndex -> users.list(ListUsersRequest.builder().startIndex(startIndex).build())).as(StepVerifier::create).expectComplete().verify(Duration.ofSeconds(1));
}
Aggregations