Created
January 17, 2018 20:14
-
-
Save rowanl/deca11efc59d70b0bf6e8e70afd5940d to your computer and use it in GitHub Desktop.
playframework-kubernetes - Testing Ebean queries using BDD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void Given_CharityObjectsExist_When_FindListIsCalled_Then_AllCharityObjectsAreReturned() { | |
// GIVEN | |
rangeClosed(1, 4).boxed().map(Charity::new).forEach(Model::save); | |
// WHEN | |
List<Charity> result = repository.findList().toCompletableFuture().join(); | |
// THEN | |
assertThat(result.size(), is(4)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment