mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
Spring-2019-08 - 18 - Solution from the class
This commit is contained in:
+12
@@ -28,4 +28,16 @@ public class PersonRepositoryTest {
|
||||
.expectComplete()
|
||||
.verify();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldFindByAge() {
|
||||
repository.save(new Person("Pushkin", 18)).subscribe();
|
||||
|
||||
StepVerifier.create(
|
||||
repository.findAllByAge(18)
|
||||
)
|
||||
.expectNextCount(1)
|
||||
.expectComplete()
|
||||
.verify();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user