AssertJ assertions for testing RxJava Observables (now deprecated).
AssertJ RxJava is a deprecated Java library that extends AssertJ to provide fluent assertions for testing RxJava Observables. It helps developers write readable and expressive unit tests for reactive streams by offering assertions for completion, error emission, and value validation. The library specifically targets "cold" Observables, requiring conversion to BlockingObservable before testing.
Java developers using RxJava for reactive programming who need to write unit tests for Observables. It is aimed at those familiar with AssertJ's assertion style and seeking more expressive testing of reactive streams.
Developers choose AssertJ RxJava for its fluent, readable assertion syntax that integrates seamlessly with AssertJ, making tests more maintainable. However, it is now deprecated as RxJava's built-in TestSubscriber provides similar functionality without external dependencies.
[DEPRECATED] AssertJ assertions for RxJava Observables
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses AssertJ's readable and expressive style to make test code intuitive, as shown in examples like `assertThat(observable.toBlocking()).completes().emitsSingleValue("hello")`.
Allows precise validation of error types with assertions like `failsWithError(IllegalArgumentException.class)`, enabling detailed failure condition checks.
Provides assertions for emitted values, including single values, multiple values, and exact sequences, helping ensure correct data flow in tests.
Extends the popular AssertJ library, reducing the learning curve for developers already familiar with its fluent assertion patterns.
The library is explicitly marked as deprecated with no new development, risking compatibility issues and lack of support for future RxJava versions.
Only supports testing cold Observables and requires conversion to BlockingObservable, adding complexity and missing coverage for hot Observables.
Introduces an external library when RxJava's native TestSubscriber offers similar functionality, potentially increasing project bloat and maintenance.