testing objects from multiple packages in the same test - can this be done?

  1 post   Feedicon  
Replies: 0 - Last Post: November 08, 2011 22:02
by: jordanthompson
showing 1 - 1 of 1
 
Posted: November 08, 2011 22:02 by jordanthompson
I have several packages in my app. One or more objects in one package rely on one or more objects in other packages. I want to test only one particular object (unit test) but obviously I need to include other objects to make this work.
I cannot get this to compile. All of the examples I have found show only a single package with one or more objects.

For example, if I have com.thompco.widgets.Label and com.thompco.db.Table. Assume that the Label class relies on Table class.

If I want to test the Label class, what package do I put in the (test) AndroidManifest?
where do I put the tests (com.thompco.tests.TableTest.java?)

The reason (one of them) I am posting here is because the netbeans compiler is not complaining until I actually hit the compile button (there are no errors in the editor, only in the output screen) so I am guessing I am missing something in the netbeans/android setup.

thanks for any help you may be able to give me.
Jordan
Replies: 0 - Last Post: November 08, 2011 22:02
by: jordanthompson
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close