Commit Graph

310 Commits

Author SHA1 Message Date
Mark Paluch
69c2c2aef4 #266 - Refactor reactive tests to use StepVerifier and test methods.
We now use StepVerifier and RxJava's .test() methods instead of .block() calls. Using blocking methods is an anti pattern which should be avoided within tests. Test API comes with timeouts and protects tests from never completing.
2017-11-30 18:03:51 -08:00
Mark Paluch
a2f963df14 #328 - Fix reactive MongoDB tailable cursor examples.
Replace flatMap(…) operator after collection drop with then(…) to create the collection regardless of whether the previous operation emitted an element or not.

Collect emitted elements to add an assertion and fail if the tailing does not work.
2017-11-30 17:18:10 -08:00
Mark Paluch
627a08b02b #327 - Polishing.
Add comment to configured bean.
2017-11-30 15:04:42 -08:00
Mark Paluch
19cf463305 #327 - Add Jackson example for Reactive Redis use. 2017-11-30 15:03:49 -08:00
Mark Paluch
b3d8749273 #326 - Extend CORS examples.
Add examples for preflight- and rejected requests.
2017-11-30 14:19:45 -08:00
Mark Paluch
674c4e904c #325 - Upgrade to Spring Boot 2.0 M7.
Tweak bom to reflect Spring Framework and Spring Data versions.

Remove reactive Couchbase configuration code required prior to Spring Boot 2.0 M7.

Tweak CORS examples to adapt to Spring Framework's disabled allowCredentials by default.
2017-11-30 14:15:09 -08:00
Mark Paluch
3d19c67d0a #323 - Polishing.
Rename KeyOperationsTests to KeyCommandsTests to align with naming on connection level.
2017-11-28 12:02:56 +01:00
Mark Paluch
c2858055a8 #323 - Add examples for Reactive Redis Template. 2017-11-28 12:02:56 +01:00
Mark Paluch
bd7b5e553b #265 - Add reactive examples.
Original pull request: #275.
2017-11-24 09:39:18 +01:00
Mark Paluch
b61875f97c #265 - Polishing.
Add license headers. Replace CouchbaseConfiguration with Spring Boot properties. Post-process example data to make it accessible for repository use. Fix Id type. Add examples for N1ql and view access.

Enable couchbase examples in parent pom.

Add test rule to skip tests if Couchbase is not available.

Original pull request: #275.
2017-11-23 14:10:57 +01:00
Chandana Kithalagama
5ba65308a7 #265 - Add example for Spring Data Couchbase.
Original pull request: #275.
2017-11-23 14:10:51 +01:00
Mark Paluch
4b648b1d50 #265 - Install and launch Couchbase on TravisCI.
We now install a Couchbase instance on TravisCI preinitialized with the Travel sample data set.

Original pull request: #275.
2017-11-23 14:09:14 +01:00
Ivan Sopov
ec94079b8f #321 - Fix Hibernate exclusion in EclipseLink sample.
Previously, the deprecated hibernate-entitymanager dependency was excluded but that was not taking effect, since current spring-boot-starter-data-jpa depends on hibernate-core.
2017-11-19 12:42:39 +01:00
Oliver Gierke
0e9e979c9a #319 - Upgrade to Spring Boot 2.0 M6.
Tweaked setup of in-memory user accounts in Spring Security example to accommodate the changes in Password encoding.

Tweaked Elasticsearch examples to use Log4j 2 instead of Logback as embedded Elasticsearch requires it to run properly.
2017-11-06 12:22:14 +01:00
Mark Paluch
96d1e7f7ca #318 - Polishing.
Rewrite test to AssertJ. Replace CharSet lookup with constant assignment. Typos.
2017-11-06 08:25:10 +01:00
Mark Paluch
fec9bb4729 #318 - Remove superfluous @EqualsAndHashCode annotation.
Address does not require to be annotated with @EqualsAndHashCode as these settings are inherited from @Data.
2017-11-06 08:19:37 +01:00
Mark Paluch
c32cedb97b #312 - Adapt reactive MongoDB example readme to changed @Tailable annotation.
Adapt also changed insertAll(…) signature to accept a Collection instead of a Flux.
2017-10-25 11:39:59 +02:00
Oliver Gierke
7bad34a7de #308 - Remove explicit Hibernate dependency handling. 2017-10-20 14:14:59 +02:00
Oliver Gierke
32ee5a11d5 #304 - Upgraded BOM sample to use Spring Framework 5 and Spring Data Kay. 2017-10-12 09:35:35 +02:00
Oliver Gierke
6fec7a5d0f #303 - Upgraded to Spring Boot 2.0 M5.
Removed Spring Framework 5 build profile as Boot 2.0 is based on that already. Removed obsolete custom property to use Spring Data Kay. Removed explicit declaration of the compiler plugin as Boot defaults to Java 8 and compiling with -parameters now.
2017-10-12 09:35:35 +02:00
Mark Paluch
5760555c57 #299 - Migrate Redis examples to Lettuce.
We now use Lettuce API instead of Jedis to align with Boot's driver choice.
2017-10-10 16:34:37 +02:00
Oliver Gierke
ffc33fcf92 #297 - Adapt to latest API changes in RxJava 2 in Cassandra module. 2017-10-06 18:24:58 +02:00
Oliver Gierke
562b95996b #276 - Changed Javaslang example to use Vavr instead.
Module renamed and switched to Vavr packages. Explicitly refer to the Kay snapshots as the Vavr support is not available in a Spring Data release yet.
2017-10-06 18:02:11 +02:00
Oliver Gierke
567da544b7 #297 - Fixed POM setup for 2.0. 2017-10-06 17:39:31 +02:00
Oliver Gierke
6f3dd29431 #297 - Re-enable Redis reactive example.
Removed fixed versions of dependencies. Removed explicit declaration of Lettuce version as it is now managed by Boot. Switched to Lettuce as primary Redis driver in application setup. We keep using Jedis in the embedded server support.
2017-10-06 17:30:36 +02:00
Oliver Gierke
d7fcdf5618 #297 - Updated README. 2017-10-06 15:48:31 +02:00
Mark Paluch
5c01c44130 #298 - Add JPA example for composable repositories. 2017-10-06 15:33:23 +02:00
Oliver Gierke
a0775f774b #297 - Removed fixing the version of Spring Security to 4.0 from REST samples. 2017-10-06 15:32:15 +02:00
Oliver Gierke
50945ac434 #297 - Upgraded to Thymeleaf Spring Data dialect compatible with Thymeleaf 3. 2017-10-06 15:32:08 +02:00
Oliver Gierke
42a27837a0 #297 - Adapt to latest API changes in Reactor 3.1 RC1 and Spring Data MongoDB. 2017-10-06 15:31:12 +02:00
Christoph Strobl
e7123f2647 #297 - Add sample for fluent MongoDB API. 2017-10-06 15:30:10 +02:00
Christoph Strobl
7a557bfd72 #297 - Move MongoDB example from RxJava1 to RxJava2. 2017-10-06 15:29:28 +02:00
Oliver Gierke
b87336ba8f #297 - Update to changes in ExampleMatcher API. 2017-10-06 15:29:07 +02:00
Jens Schauder
80b70e6bd2 #297 - Fixed failing test due to repository methods now returning Optional.
Also migrated Tests to AssertJ. Fixed compilation failure due to changed API of CollectionOptions
2017-10-06 15:26:40 +02:00
Jens Schauder
20f6963927 #297 - Fixed failing test due to repository methods now returning Optional.
Also migrated Tests to AssertJ.
2017-10-06 15:24:50 +02:00
Christoph Strobl
5fcec44ec6 #297 - Upgraded samples for Spring Data for Apache Solr to Kay.
Adapt to API changes in SolrOperations.
2017-10-06 15:24:21 +02:00
Mark Paluch
d319758bef #297 - Upgraded samples for Spring Data for Cassandra to Kay.
Adapt to changed API. Migrate tests to use AssertJ. Re-enable Cassandra examples. Adapt Cassandra examples to relocated packages. Adapt reactive Cassandra examples to removed insert(Publisher) method.

Exclude the reporter-config3 library from cassandra-all as it pulls in an outdated hibernate-validator version 4.3.0 that conflicts with Spring Boot's Hibernate Validator baseline and it's not required during tests because we don't publish any metrics.
2017-10-06 15:23:57 +02:00
Oliver Gierke
5d34f0a00d #297 - Tweaked persistence context handling in security tests.
The modifying query now clears the EntityManager so that the changes are really flushed to the database. This is necessary as Boot 2.0 flips the default for Hibernate's new identifier mappings which causes entities less aggressively being flushed and the previously used detach apparently removing them from the persistence context without ever making it to the database.
2017-10-06 15:15:55 +02:00
Oliver Gierke
4164bc4607 #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.
2017-10-06 15:15:53 +02:00
Mark Paluch
90546357c7 #291 - Adapt to API changes in Spring Data Cassandra.
Exclude CassandraDataAutoConfiguration because the referenced Spring Data Cassandra version is not compatible with CassandraDataAutoConfiguration. Refactor bulk loading to flapMap(…) as CassandraTemplate.insert(…) no longer accepts an entity stream.
2017-08-25 13:39:48 +02:00
Oliver Gierke
b527cbf1d6 #291 - Upgraded to Spring Boot 1.5.6.
Upgraded to Boot 1.5.6. Updated dependencies of reactive projects to latest versions to make sure the APIs of Boot work with the changes in Spring Data Kay RC1. Upgraded all other dependencies to match and got both the Redis and the Cassandra examples to compile again.

Disabled Cassandra reactive samples for now as they fail at runtime.
2017-08-25 11:00:11 +02:00
Oliver Gierke
013058d410 #290 - Polishing.
Imports and typos in JavaDoc.
2017-08-24 11:54:24 +02:00
Oliver Gierke
663c8bd73b #290 - Removed obsolete @Autowired annotations. 2017-08-24 11:54:24 +02:00
Kamil Kot
f65d678237 #282 - Fixes typo in README.md.
Replaced MongoDB with the intended Spring Data JPA.

Original pull request: #281.
2017-08-24 10:47:49 +02:00
Mark Paluch
a0754b7ce6 #280 - Increase Cassandra startup timeout to 60 seconds. 2017-06-19 11:56:11 +02:00
Oliver Gierke
74978efbe6 #279 - Upgraded to Spring Boot 1.5.4. 2017-06-19 09:55:22 +02:00
Oliver Gierke
7870a7e060 #278 - Fix entity characteristics in Customer in Eclipselink example.
We now calculate the equals(…) and hashCode() methods by looking at the indentifier only. Removed default constructor in favor of Lombok's @NoArgConstructor.
2017-06-19 09:51:03 +02:00
Oliver Gierke
aa2c2e1fe0 #274 - Maven build now runs with -U to make sure we always update snapshots. 2017-05-05 13:23:13 +02:00
Oliver Gierke
dbb13f831f #273 - Upgraded to Spring Boot 1.5.3.
Removed manually declared bean for Spring Security's EvaluationContextExtension.
2017-05-04 21:58:06 +02:00
Mark Paluch
45f19a6c1d #166 - Rename Redis cluster-sentinel to sentinel.
Rename the Redis cluster-sentinel project to sentinel and leave a hint in the cluster-sentinel directory that points to the Redis Cluster and Redis Sentinel examples mentioning clarifying the cluster-sentinel naming.
2017-03-10 08:47:19 +02:00