Skip to content

Commit

Permalink
3.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
MammatusPlatypus committed Mar 28, 2017
1 parent 68c0123 commit 9a0f571
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'io.advantageous.reakt'
version '2.1.0.RELEASE'
version '3.0.0'

apply plugin: 'java'
apply plugin: 'maven'
Expand Down Expand Up @@ -29,7 +29,7 @@ repositories {
dependencies {

testCompile group: 'junit', name: 'junit', version: '4.11'
compile group: project.group, name: 'reakt', version: "2.1.0.RELEASE"
compile 'io.advantageous.reakt:reakt:4.0.1'
compile group: 'io.vertx', name: 'vertx-core', version: vertxVersion

}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/advantageous/reakt/vertx/ReaktVertx.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ReaktVertx {
* @return vertx handler
*/
public static <T> Handler<AsyncResult<T>> convertPromise(final Promise<T> promise) {
return convertCallback(promise);
return convertCallback(promise.asHandler());
}

/**
Expand Down
16 changes: 8 additions & 8 deletions src/test/java/io/advantageous/reakt/vertx/ReaktVertxTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public boolean failed() {
asyncResultHandler.handle(asyncResult);


assertTrue(promise.complete());
assertTrue(promise.success());
assertNotNull(promise.get());
assertEquals("Bob", promise.get().id);
assertTrue(promise.asHandler().complete());
assertTrue(promise.asHandler().success());
assertNotNull(promise.asHandler().get());
assertEquals("Bob", promise.asHandler().get().id);
assertNotNull(ref.get());
assertTrue(ref.get().isPresent());
assertEquals("Bob", ref.get().get().id);
Expand Down Expand Up @@ -90,11 +90,11 @@ public boolean failed() {
asyncResultHandler.handle(asyncResult);


assertTrue(promise.complete());
assertTrue(promise.failure());
assertNotNull(promise.cause());
assertTrue(promise.asHandler().complete());
assertTrue(promise.asHandler().failure());
assertNotNull(promise.asHandler().cause());
assertNotNull(ref.get());
assertEquals("bad stuff", promise.cause().getMessage());
assertEquals("bad stuff", promise.asHandler().cause().getMessage());
assertEquals("bad stuff", ref.get().getMessage());
}

Expand Down

0 comments on commit 9a0f571

Please sign in to comment.