coldstar96 / cse403

Budget Manager Project
1 stars 2 forks source link

Added API Test Cases #64

Closed grablair closed 11 years ago

grablair commented 11 years ago
  1. Added test cases for ApiInterface's applicable functions. This includes all functions we don't require network connection to emulate.
  2. Added a TestAsyncHttpClient class, for use with the ApiInterface tests. Emulates network communication.
  3. Added a couple onFailure calls to ApiInterface, where exceptions occurred. Before, they just continued and called onSuccess.

Keep in mind, I have troubles running the emulator on my machine, I am running tests on another machine with Chris and will be fixing any issues momentarily.

CardboardAqueduct commented 11 years ago

Tests are running fine. Looks good. Fixed a bug in the api interface, and wrote junit tests for the interface.

ETA: Should probably indicate that these are whitebox tests.

CardboardAqueduct commented 11 years ago

Ok, it looks like all the tests are passing now.