#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

@@ -15,11 +15,11 @@
*/
package example.springdata.neo4j;
import org.springframework.data.neo4j.repository.GraphRepository;
import org.springframework.data.neo4j.repository.Neo4jRepository;
/**
* {@link GraphRepository} for {@link Actor}s.
*
* @author Luanne Misquitta
*/
public interface ActorRepository extends GraphRepository<Actor> {}
public interface ActorRepository extends Neo4jRepository<Actor, Long> {}

View File

@@ -15,8 +15,7 @@
*/
package example.springdata.neo4j;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import static org.assertj.core.api.Assertions.*;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -55,14 +54,10 @@ public class ActorRepositoryIntegrationTest {
actorRepository.save(daniel); // saves the actor and the movie
Actor actor = actorRepository.findOne(daniel.getId());
assertThat(actor, is(notNullValue()));
assertThat(actor.getName(), is(daniel.getName()));
assertThat(actor.getRoles(), hasSize(1));
Role role = actor.getRoles().iterator().next();
assertThat(role.getRole(), is("Harry Potter"));
assertThat(actorRepository.findById(daniel.getId())).hasValueSatisfying(actor -> {
assertThat(actor.getName()).isEqualTo(daniel.getName());
assertThat(actor.getRoles()).hasSize(1).first()
.satisfies(role -> assertThat(role.getRole()).isEqualTo("Harry Potter"));
});
}
}