[android-developers] Re: POJO junit test in an Android project

2010-08-11 Thread Doug
I've set up Android test projects for my POJOs (or any code that doesn't depend on Android) and run them within Eclipse with no trouble (if that's what you're asking). You have to be tricky about the run configuration you use the launch the tests, though. -- You received this message because you

[android-developers] Re: POJO junit test in an Android project

2010-08-10 Thread doug
Thanks for the reply. Test cases derived from Android junit.framework.TestCase still need the emulator to run. But I should have known better. Dalvik is not a JVM so of course it would be impossible to test Android code with tools written for JVM because Java class engineering would not apply to

[android-developers] Re: POJO junit test in an Android project

2010-08-10 Thread A. Elk
The JUnit TestCase in Android should work. By default, the Eclipse plug-in will not build tests/ or its subdirectories into your application's .apk. I recommend you have one project for your main application, and another *project* for your test package. Notice that two different projects in Eclip

[android-developers] Re: POJO junit test in an Android project

2010-08-10 Thread ko5tik
On Aug 10, 3:39 am, doug wrote: > Oh well, It doesn't seem that the Eclipse plug-in would even run a > test case subclassed directly from junit.framework.TestCase.  How do > folks test POJOs in Android then? Which junit.framework.TestCase you are using? One coming from android library will be

[android-developers] Re: POJO junit test in an Android project

2010-08-09 Thread doug
Oh well, It doesn't seem that the Eclipse plug-in would even run a test case subclassed directly from junit.framework.TestCase. How do folks test POJOs in Android then? Thanks, doug -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post