File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Testing simulation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Testing simulation" Watch "Testing simulation" New topic
Author

Testing simulation

Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
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.


Tina
SCJP 1.4, SCWCD 1.4
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
GeeCON Prague 2014
 
subject: Testing simulation