This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Testing simulation  RSS feed

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the book provide any good guidance as to how to test my application for the android , besides using an android device to test it out.
 
ranger
Sheriff
Posts: 17314
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tina Ma wrote:Does the book provide any good guidance as to how to test my application for the android , besides using an android device to test it out.



The book is about Core Spring and doesn't cover Spring Android project as far as I have seen so far. But the Spring Android project is very small with a few classes. The main is the RestTemplate to make Restful Web Services calls from the device.

Unfortunately, it is an extreme pain to do Android Test, well sort of. The main caveat is that if your class has any Android classes in it, the test has to run on the emulator. This is because the .jar file you have in the IDE just has stubs for all the classes so the code can compile and has absolutely no implementation code in it.

I also find that Android tests only work with things like Activity etc for an Android app, but not if you happen to building a library like I am.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!