Move off Google Guava usage in tests.

Closes #378
This commit is contained in:
Mark Paluch
2021-06-21 09:58:33 +02:00
parent 9ac86e3aa5
commit 6e73b759a7

View File

@@ -36,10 +36,9 @@ import org.springframework.data.keyvalue.repository.support.QuerydslKeyValueRepo
import org.springframework.data.map.QuerydslKeyValueRepositoryUnitTests.QPersonRepository;
import org.springframework.data.querydsl.QSort;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.util.Streamable;
import org.springframework.data.util.Version;
import com.google.common.collect.Lists;
/**
* Unit tests for {@link QuerydslKeyValueRepository}.
*
@@ -161,7 +160,8 @@ public class QuerydslKeyValueRepositoryUnitTests extends AbstractRepositoryUnitT
repository.saveAll(LENNISTERS);
List<Person> users = Lists.newArrayList(repository.findAll(person.age.gt(0), Sort.by(Direction.ASC, "firstname")));
List<Person> users = Streamable.of(repository.findAll(person.age.gt(0), Sort.by(Direction.ASC, "firstname")))
.toList();
assertThat(users).hasSize(3);
assertThat(users.get(0).getFirstname()).isEqualTo(CERSEI.getFirstname());