#297 - Upgraded to Boot 2.0 and Spring Data Kay.
Bumped version number to 2.0. Upgraded to Spring Boot 2.0. Stuff disabled in the meantime: - Cassandra: needs API adaptions in configuration - JPA > Security: test fails with weird Hibernate error - Redis > Reactive: API updates needed - Solr: configration updates necessary adjust versions Updated elastic search to the new version. Fixed the reactor version to Bismuth-BUILD-SNAPSHOT. This probably should be undone when boot references the proper bom.
This commit is contained in:
@@ -18,6 +18,7 @@ package example.springdata.ldap;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
import javax.naming.InvalidNameException;
|
||||
import javax.naming.ldap.LdapName;
|
||||
@@ -47,12 +48,13 @@ public class PersonRepositoryIntegrationTests {
|
||||
@Test
|
||||
public void findOneByName() throws InvalidNameException {
|
||||
|
||||
Person person = personRepository.findOne(new LdapName("uid=bob,ou=people,dc=springframework,dc=org"));
|
||||
Optional<Person> person = personRepository.findById(new LdapName("uid=bob,ou=people,dc=springframework,dc=org"));
|
||||
|
||||
assertThat(person).isNotNull();
|
||||
assertThat(person.getFullName()).isEqualTo("Bob Hamilton");
|
||||
assertThat(person.getLastname()).isEqualTo("Hamilton");
|
||||
assertThat(person.getUid()).isEqualTo("bob");
|
||||
assertThat(person).hasValueSatisfying(it -> {
|
||||
assertThat(it.getFullName()).isEqualTo("Bob Hamilton");
|
||||
assertThat(it.getLastname()).isEqualTo("Hamilton");
|
||||
assertThat(it.getUid()).isEqualTo("bob");
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user