Skip to content

Commit

Permalink
v1.1.0 release
Browse files Browse the repository at this point in the history
Adds support for rx.Completable
  • Loading branch information
hyleung committed Oct 24, 2016
1 parent 75a2761 commit 800d9c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ RxTestKit currently supports AssertJ `assertThat` style assertions on `rx.Observ
<dependency>
<groupId>com.github.hyleung</groupId>
<artifactId>rx-testkit-java</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<scope>test</scope>
</dependency>
```

### via Gradle
```
test 'com.github.hyleung:rx-testkit-java:1.0.0'
test 'com.github.hyleung:rx-testkit-java:1.1.0'
```

##Examples:
Expand Down Expand Up @@ -59,3 +59,16 @@ assertThat(observable)
.contains(myException);
```

...or mess around with time using a `TestScheduler`:

```
TestScheduler scheduler = new TestScheduler();
Observable<Integer> observable = Observable.just(1).delay(99, TimeUnit.MILLISECONDS, scheduler);
assertThat(observable, scheduler)
.after(100, TimeUnit.MILLISECONDS)
.values()
.isNotEmpty();
```

There's also support for `rx.Single` and `rx.Completable`.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apply plugin: 'signing'
sourceCompatibility = 1.8
targetCompatibility = 1.8

version = "1.1.0-SNAPSHOT"
version = "1.1.0"

compileJava {
options.deprecation = true
Expand Down

0 comments on commit 800d9c9

Please sign in to comment.