Search in sources :

Example 6 with User

use of org.springframework.data.repository.sample.User in project spring-data-commons by spring-projects.

the class RepositoryFactorySupportUnitTests method wrapsExecutionResultIntoCompletableFutureWithEntityCollectionIfConfigured.

// DATACMNS-714
@Test
public void wrapsExecutionResultIntoCompletableFutureWithEntityCollectionIfConfigured() throws Exception {
    assumeThat(SPRING_VERSION.isGreaterThanOrEqualTo(FOUR_DOT_TWO), is(true));
    List<User> reference = Collections.singletonList(new User());
    expect(prepareConvertingRepository(reference).readAllByFirstname("Foo"), reference);
}
Also used : User(org.springframework.data.repository.sample.User) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 User (org.springframework.data.repository.sample.User)6 ApplicationEvent (org.springframework.context.ApplicationEvent)1