How To Unit Test Google Cloud Endpoints Java Using Android Studio 0.8
I've found a few posts, but they either refer to front-end testing, or python. There is one tutorial for java GCE but there's no specificity on how to set it up in Android Studio,
Solution 1:
Ok with some gradle googling, I managed to get it to work by adding the following the the build.gradle file in my backend module
testCompile 'com.google.appengine:appengine-api-labs:1.9.8'
testCompile 'com.google.appengine:appengine-api-stubs:1.9.8'
testCompile 'com.google.appengine:appengine-testing:1.9.8'
testCompile 'junit:junit:4.12+'
And also following this (in the original post) https://developers.google.com/appengine/docs/java/tools/localunittesting#Java_Writing_Datastore_and_memcache_tests
Hopefully it helps someone else as well.
Post a Comment for "How To Unit Test Google Cloud Endpoints Java Using Android Studio 0.8"