kamikitty / ResilientSmartGarden

0 stars 0 forks source link

Establish communication with server #5

Closed jasonplojo closed 7 years ago

jasonplojo commented 7 years ago

Will use Instrumented Unit Test instead of JUnit test.

Establishing communication with the server requires the use of ASyncTask, an Implementation provided by the Android SDK.

JUnit test isolates itself from the Android SDK environment, meaning any Android libraries will not work. The Android library must be mocked in order for JUnit tests to work. Implementing mock code introduces additional work that is not needed since the libraries already exists in the Android SDK and it may introduce more bugs.

Instrumented Unit Test can use Android libraries since it is integrated with the Android SDK environment.

jasonplojo commented 7 years ago

Can communication with the server, but getting 403 response code.