mas-mob-app-devs/techbook-app — pull request #9 by Kakarot (2013-11-17 01:57:37+00:00)
Title: Added Important APIs

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 pairs, 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/1557630/c0e84e36-4f2a-11e3-8233-bf6555b4e80c.png)