Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Unit Testing / Understanding Rx Java

Trevor John
November 10, 2015

Unit Testing / Understanding Rx Java

Talk on understanding RxJava interfaces given at the NY Android meetup on 11/10/2015

Trevor John

November 10, 2015
Tweet

Other Decks in Programming

Transcript

  1. What We Will Cover Learn how RxJava APIs work (should

    work) How to use what we learned to write simple tests
  2. Quick Overview Rx programming definition: An API for asynchronous programming

    with observable streams (http: //reactivex.io/) While the API is simple it is very large Most common use case is fetching data
  3. RxJava Usage Allows you to simply handle responses while ignoring

    threading It allows for easier error handling Minimizes race conditions
  4. Understanding How Rx Works With Rx if nobody is listening

    it won’t do anything! No subscription, no anything (There are exceptions)
  5. Another Option? Subjects! - They are super powerful and could

    be a better/simpler solution for testing. Less configurable, but it works and no “fake” classes