Skip to content

Commit cffee12

Browse files
committed
Polishing.
Add author tags, extend copyright license years, simplify tests. See #3892
1 parent 3523761 commit cffee12

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/ReactiveSpringDataMongodbQuery.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -49,13 +49,14 @@
4949
import com.querydsl.mongodb.MongodbOps;
5050

5151
/**
52-
* MongoDB query with utilizing {@link ReactiveMongoOperations} for command execution.
52+
* MongoDB query utilizing {@link ReactiveMongoOperations} for command execution.
5353
*
5454
* @implNote This class uses {@link MongoOperations} to directly convert documents into the target entity type. Also, we
55-
* want entites to participate in lifecycle events and entity callbacks.
55+
* want entities to participate in lifecycle events and entity callbacks.
5656
* @param <K> result type
5757
* @author Mark Paluch
5858
* @author Christoph Strobl
59+
* @author Rocco Lagrotteria
5960
* @since 2.2
6061
*/
6162
class ReactiveSpringDataMongodbQuery<K> extends SpringDataMongodbQuerySupport<ReactiveSpringDataMongodbQuery<K>> {

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/support/ReactiveQuerydslMongoPredicateExecutorTests.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -65,6 +65,7 @@
6565
*
6666
* @author Mark Paluch
6767
* @author Christoph Strobl
68+
* @author Rocco Lagrotteria
6869
*/
6970
@RunWith(SpringRunner.class)
7071
@ContextConfiguration
@@ -400,19 +401,17 @@ public void findByShouldApplyPagination() {
400401
.as(StepVerifier::create) //
401402
.assertNext(it -> {
402403

403-
assertThat(it.getContent().size()).isEqualTo(1);
404404
assertThat(it.getTotalElements()).isEqualTo(2);
405-
assertThat(it.getContent()).contains(dave);
405+
assertThat(it.getContent()).containsOnly(dave);
406406
}).verifyComplete();
407407

408408
repository
409409
.findBy(person.lastname.eq(oliver.getLastname()), it -> it.page(PageRequest.of(1, 1, Sort.by("firstname")))) //
410410
.as(StepVerifier::create) //
411411
.assertNext(it -> {
412412

413-
assertThat(it.getContent().size()).isEqualTo(1);
414413
assertThat(it.getTotalElements()).isEqualTo(2);
415-
assertThat(it.getContent()).contains(oliver);
414+
assertThat(it.getContent()).containsOnly(oliver);
416415
}).verifyComplete();
417416
}
418417

0 commit comments

Comments
 (0)