use of io.nem.symbol.sdk.api.SecretLockSearchCriteria in project nem2-sdk-java by nemtech.
the class SecretLockRepositoryIntegrationTest method searchWhenInvalidAddress.
@ParameterizedTest
@EnumSource(RepositoryType.class)
void searchWhenInvalidAddress(RepositoryType type) {
SecretLockRepository repository = getRepositoryFactory(type).createSecretLockRepository();
Address address = Address.generateRandom(getNetworkType());
Page<SecretLockInfo> page = get(repository.search(new SecretLockSearchCriteria().address(address)));
Assertions.assertTrue(page.isLast());
Assertions.assertTrue(page.getData().isEmpty());
Assertions.assertEquals(20, page.getPageSize());
}
Aggregations