Spring-2019-08 - 18 - Solution from the class

This commit is contained in:
ydvorzhetskiy
2019-10-30 22:08:57 +03:00
parent 32cefe19b1
commit 7bdddd71ff
@@ -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();
}
}