{"id":13803922,"url":"https://github.com/ribot/assertj-rx","last_synced_at":"2025-04-08T11:32:39.336Z","repository":{"id":57743674,"uuid":"41429773","full_name":"ribot/assertj-rx","owner":"ribot","description":"[DEPRECATED] AssertJ assertions for RxJava Observables","archived":false,"fork":false,"pushed_at":"2016-04-29T13:59:15.000Z","size":64,"stargazers_count":117,"open_issues_count":2,"forks_count":5,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-23T12:04:44.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ribot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-26T14:17:15.000Z","updated_at":"2024-03-31T14:16:37.000Z","dependencies_parsed_at":"2022-09-12T10:10:56.582Z","dependency_job_id":null,"html_url":"https://github.com/ribot/assertj-rx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribot%2Fassertj-rx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribot%2Fassertj-rx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribot%2Fassertj-rx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribot%2Fassertj-rx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ribot","download_url":"https://codeload.github.com/ribot/assertj-rx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247834188,"owners_count":21003926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:00:39.128Z","updated_at":"2025-04-08T11:32:37.972Z","avatar_url":"https://github.com/ribot.png","language":"Java","readme":"Deprecated\n===========\n\nAssertj-rx is now deprecated. In-order to test observabales, please use the [TestSubscriber](http://reactivex.io/RxJava/javadoc/rx/observers/TestSubscriber.html#TestSubscriber%28rx.Subscriber%29) - more information on this can be found [here](https://labs.ribot.co.uk/unit-testing-rxjava-6e9540d4a329#.tjmv351u0). Whilst the current version still remains usable, there will no longer be any new development taking place.\n\n# AssertJ RxJava\n[AssertJ](http://joel-costigliola.github.io/assertj/) assertions for [RxJava](https://github.com/ReactiveX/RxJava) Observables.\n\nThis library extends AssertJ core with the aim of providing elegant assertions to test RxJava Observables. The current version of this library only provides assertions aimed at testing \"cold\" Observables. You will need to transform your Observable into a [`BlockingObservable`](http://reactivex.io/RxJava/javadoc/rx/observables/BlockingObservable.html) before performing any assertion. \n\nFeedback and contributions are very welcome. \n\n##Examples\n\n* Assert that completes successfully without emitting any error:\n```java\nassertThat(observable.toBlocking()).completes();\n```\n* Assert that completes after emitting a single value \"hello\":\n```java\nassertThat(observable.toBlocking())\n    .completes()\n    .emitsSingleValue(\"hello\");\n```\n* Assert that completes without emitting any value:\n```java\nassertThat(observable.toBlocking())\n    .completes()\n    .emitsNoValues();\n```\n* Assert that emits an error:\n```java\nassertThat(observable.toBlocking()).fails();\n```\n* Assert that emits an error of type `IllegalArgumentException`\n```java\nassertThat(observable.toBlocking())\n    .failsWithError(IllegalArgumentException.class);\n```\n* Assert that completes after emitting three values that are exactly \"a\", \"b\" and \"c\":\n```java\nassertThat(observable.toBlocking())\n    .completes()\n    .listOfValuesEmitted()\n    .containsExactly(\"a\", \"b\", \"c\");\n```\n* Assert that fails after emitting \"a\" and \"b\":\n```java\nassertThat(observable.toBlocking())\n    .fails()\n    .listOfValuesEmitted()\n    .containsExactly(\"a\", \"b\");\n```\n* Assert that completes after emitting 10 values\n```java\nassertThat(observable.toBlocking())\n   .completes()\n   .valuesCountIs(10);\n```\n## Installation\n\nArtifacts are on Maven central. \n\nGradle:\n```groovy\ntestCompile 'uk.co.ribot.assertj-rx:assertj-rx:0.1.0'\n```\nMaven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003euk.co.ribot.assertj-rx\u003c/groupId\u003e\n  \u003cartifactId\u003eassertj-rx\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.0\u003c/version\u003e\n  \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\nAlternatively, you can download the jar from the [releases section](https://github.com/ribot/assertj-rx/releases).\n## License \n```\nCopyright (C) 2015 Ribot Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":["Testing"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribot%2Fassertj-rx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fribot%2Fassertj-rx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribot%2Fassertj-rx/lists"}