If you have an application that connects to an RSocket server at runtime, how do you test it? We need a way for a test to start a server and tell us where it is listening, and then we need to be able to register request and response examples (a.k.a. "contracts"). That’s what this project provides - it’s like Wiremock but for RSocket.
Getting Started
The easiest way to use the project is as a JUnit (Jupiter) extension, e.g:
@SpringBootTest
@ExtendWith(RSocketServerExtension.class)
class SocketsApplicationTests {
...
}
With this extension installed the Spring Boot tests will run with an RSocket server listening on a port given by test.rsocket.server.port, so the test can connect directly to it, or (more likely) the code that it is testing will connect to it. You might need to tell it where to connect via the @SpringBootTest annotation, e.g. if the application is looking for a property at runtime called rsocket.port…
Hi, Spring fans! Welcome to another installment of This Week in Spring! How're you doing? I'm doing well! I hope you're doing well, too. Can you believe we've just entered the month of June 2021? WHERE HAS THIS YEAR GONE ALREADY! It's insane. But, the march of Spring continues, and with each passing week a ton of new stuff to talk about arrives. Let's get into it!
Hi, Spring fans! Welcome to another installment of This Week in Spring! How're you doing? I'm still fresh off my little vacation last week, feeling fantastic. I've spent the last several days working with Spring Boot and Spring Native and I have to tell you, they're epic.
It's gotten to the point where I sometimes spend time working on enabling Spring Native integrations for other projects - it really makes some third party abstractions come alive! It's hard to know what the right comparison is. There's not much you can do in this life that results in such an instantaneous, night-and-day difference in performance and memory profile with so few (user-visibile) changes. Imagine snapping your fingers and having your luxury hypercar (Spring Boot in this metaphor) transform into an equally capable, and very…
On behalf of the team and everyone who has contributed, I'm happy to announce that Spring Boot 2.3.11 has been released and is now available from Maven Central.
Mostly this version is a major move from Spring Cloud for AWS project hosted on Spring Cloud side to its own organization. Plus it includes upgrades to the latest dependencies, including recently released Spring Integration 5.5.
Many thanks to everyone from the Community for all the feedback and contribution to this project.
Update 2021-05-25: This release contains fixes for Spring Framework CVE-2021-22118.
On behalf of the team and everyone who has contributed, I'm happy to announce that Spring Boot 2.4.6 has been released and is now available from Maven Central.
The Spring Web Services team has released 3.1.1. This is the first major release under the new versioning schema. Releases will no longer have .RELEASE and snapshots will only be -SNAPSHOT, to better comply with community approaches.
While we strive to maintain alignment with Spring Framework and Spring Security, we also test against Java 8, Java 11, and Java LATEST (JDK 16 as of today).
For more details, read the following release notes for each version:
Release Notes - Spring Web Services - Version 3.1.1.
#1198 - Test against JDK 16 on CI.
#1197 - Upgrade to Spring Framework 5.3.7.
#1187 - Upgrade to Spring Security 5.5.0.
#1199 - Don’t skip main build targets during releases.