Skip to content

Commit eabd7d1

Browse files
committed
Move off Google Guava usage in tests.
Closes #378
1 parent c101c48 commit eabd7d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/springframework/data/map/QuerydslKeyValueRepositoryUnitTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@
3636
import org.springframework.data.map.QuerydslKeyValueRepositoryUnitTests.QPersonRepository;
3737
import org.springframework.data.querydsl.QSort;
3838
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
39+
import org.springframework.data.util.Streamable;
3940
import org.springframework.data.util.Version;
4041

41-
import com.google.common.collect.Lists;
42-
4342
/**
4443
* Unit tests for {@link QuerydslKeyValueRepository}.
4544
*
@@ -161,7 +160,8 @@ void shouldSupportFindAllWithPredicateAndSort() {
161160

162161
repository.saveAll(LENNISTERS);
163162

164-
List<Person> users = Lists.newArrayList(repository.findAll(person.age.gt(0), Sort.by(Direction.ASC, "firstname")));
163+
List<Person> users = Streamable.of(repository.findAll(person.age.gt(0), Sort.by(Direction.ASC, "firstname")))
164+
.toList();
165165

166166
assertThat(users).hasSize(3);
167167
assertThat(users.get(0).getFirstname()).isEqualTo(CERSEI.getFirstname());

0 commit comments

Comments
 (0)