mas-mob-app-devs/techbook-app — pull request #10 by Kakarot (2013-11-17 02:32:15+00:00)
Title: New APIs added

Still working on things, but I've finally gotten key/value pairs to parse correctly, and created container classes Course, Department, and Topic all which appear to be storing their data correctly.

One of the APIs only had an JSONarray with single key/value pair, so I just went ahead and returned the value as List as there was no need for an entire class for one value.

In my JSON testing workspace, I created JUnit tests to ensure all values were correct and that everything worked. So far, so good. If any of you have trouble understanding how to use the APIs, the testing framework shows how I instantiate them.

Also for some reason, the JUnit framework isn't working for Android, even though the Android framework inherits from it. Everything still compiles and seems to work, but I can only test it in my other workspace which is kind of a hassle. If you want to test it, you can download the code from:

https://github.com/Kakarot/JSONpractice

Lastly, here is a picture of the JUnit validating the data from the RESTFUL API
![testcases](https://f.cloud.github.com/assets/1477346/1557698/676b3c28-4f30-11e3-9130-4ab3097d8720.png)