Commit Graph

29 Commits

Author SHA1 Message Date
Christoph Strobl
e66d317d47 Polishing.
Replace usage of StepVerifier.create with StepVerifier::create.

Original pull request: #672
See #671
2023-11-02 14:47:41 +01:00
Christoph Strobl
f98c7b9c93 Show how to use Limit with repository queries.
Add methods taking a Limit parameter to various samples.

Original pull request: #672
Closes #671
2023-11-02 14:45:03 +01:00
Mark Paluch
f051de145e Move off deprecated code.
See #659
2023-04-24 13:46:08 +02:00
Christoph Strobl
d52d73f34c Upgrade to Spring 6 and Spring Boot 3.
See #654
2022-12-12 11:15:36 +01:00
Mark Paluch
a73d74a76d Polishing.
Move Testcontainer creation into utility.

See #632
2022-05-19 11:23:00 -05:00
Christoph Strobl
e53d9b5643 Use testcontainers for MongoDB samples.
...with some exceptions for samples that require a replica set.

See #632
2022-05-19 11:23:00 -05:00
Christoph Strobl
2347077ccf Move flapdoodle into the specific modules.
Closes #632.
2022-05-19 11:23:00 -05:00
Christoph Strobl
a171e33444 Upgrade to Spring Boot 2.6.0-M3. 2022-05-19 11:23:00 -05:00
Mark Paluch
ead318ce8d Migrate MongoDB to JUnit 5 (except for ClassRule).
See #583.
2021-04-30 10:29:25 +02:00
Mark Paluch
e565f33872 Switch MongoDB samples to records.
See #606.
2021-04-30 10:29:22 +02:00
Mark Paluch
ec8557c7da Update copyright years to 2021.
Closes #616
2021-04-27 14:47:20 +02:00
Mark Paluch
481eb57aec #542 - Polishing.
Remove properties that are no longer needed as they are provided by Spring Boot.
2019-11-11 14:40:37 +01:00
Spring Operator
ccae97890f #491 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 426 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-22 08:13:14 +01:00
Spring Operator
6d51ebf294 #473 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://mybatis.org/dtd/mybatis-3-config.dtd (301) with 1 occurrences could not be migrated:
   ([https](https://mybatis.org/dtd/mybatis-3-config.dtd) result SSLHandshakeException).
* http://mybatis.org/dtd/mybatis-3-mapper.dtd (301) with 2 occurrences could not be migrated:
   ([https](https://mybatis.org/dtd/mybatis-3-mapper.dtd) result SSLHandshakeException).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 70 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://maven.apache.org/maven-v4_0_0.xsd with 6 occurrences migrated to:
  https://maven.apache.org/maven-v4_0_0.xsd ([https](https://maven.apache.org/maven-v4_0_0.xsd) result 301).
* http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd with 1 occurrences migrated to:
  https://java.sun.com/xml/ns/persistence/persistence_2_0.xsd ([https](https://java.sun.com/xml/ns/persistence/persistence_2_0.xsd) result 302).

# Ignored
These URLs were intentionally ignored.

* http://java.sun.com/xml/ns/persistence with 2 occurrences
* http://maven.apache.org/POM/4.0.0 with 152 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 77 occurrences

Original pull request: #472
2019-03-20 10:10:59 -05:00
Mark Paluch
3a4a9d27b2 #382 - Adapt examples to Spring Boot 2.1 changes.
Replace custom configuration with the one that Boot provides. Adapt to DataMongo configuration that requires a MongoClient bean.
2018-07-26 11:57:11 +02:00
Oliver Gierke
d854c6d084 #342 - Expanded copyright headers to 2018.
Removed trailing whitespace in touched files.
2018-02-22 11:42:57 +01:00
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
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
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
7a557bfd72 #297 - Move MongoDB example from RxJava1 to RxJava2. 2017-10-06 15:29:28 +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
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
b1ffd9cede #264 - Read MongoDB port from local.mongo.port.
Port handling for embedded MongoDB use has changed. Spring Boot no longer writes the port to MongoProperties but updates property sources to provide local.mongo.port so the reactive configuration is required to read local.mongo.port to obtain the port.
2017-03-06 11:29:37 +01:00
Mark Paluch
4bae471837 #254 - Use MongoProperties.getPort() to configure reactive MongoClient.
Embedded MongoDB auto-configuration randomizes its port. Configuration happens during the creation of embeddedMongoServer so our MongoClient creation must be delayed until then.
2017-01-27 13:58:07 +01:00
Mark Paluch
c523b8d468 #245 - Upgrade to MongoDB Reactive Streams Driver 1.3.0. 2017-01-04 16:12:10 +01:00
Oliver Gierke
f3f8f79478 #215 - Upgraded reactive examples to Kay M1. 2016-11-23 11:01:21 +01:00
Oliver Gierke
00a4594764 #215 - Polishing.
Minor formatting, trailing whitespace etc.
2016-11-23 09:56:52 +01:00
Mark Paluch
20879e7fa3 #215 - Add reactive examples for MongoDB, Apache Cassandra and Redis. 2016-11-23 09:56:27 +01:00