#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:
Oliver Gierke
2017-05-04 19:28:40 +02:00
parent 90546357c7
commit 4164bc4607
98 changed files with 319 additions and 368 deletions

View File

@@ -9,7 +9,7 @@
<parent>
<groupId>org.springframework.data.examples</groupId>
<artifactId>spring-data-ldap-examples</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
<version>2.0.0.BUILD-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -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");
});
}
/**