Results 1 to 1 of 1
- 06-21-2011, 02:02 AM #1Member
- Join Date
- Jul 2009
- Rep Power
Can I exclude a file from being instantiated by JUnit?
I've written an abstract class that extends TestCase in order to test all classes that implement an interface I created named "FinancialDate." When I the run the tests, JUnit spits back an InstantiationException. After doing a little bit of digging, I've found out that the problem is that JUnit is trying to instantiate the abstract class directly and obviously fails in doing so. The apparent solution is to "exclude the abstract class file from the fileset of tests in my build.xml." I'm not familiar with ant at all, and simply get lost in the xml files involved in managing it. Does NetBeans provide a facility for excluding class files from the test suite?
- By mistybws in forum Jobs OfferedReplies: 0Last Post: 10-08-2010, 10:21 PM
- By Drun in forum New To JavaReplies: 7Last Post: 01-22-2010, 07:08 PM
- By hedonist in forum Advanced JavaReplies: 4Last Post: 10-04-2009, 12:06 PM
- By ericpinet in forum EclipseReplies: 1Last Post: 04-21-2009, 10:23 PM
- By keynan in forum EclipseReplies: 0Last Post: 02-15-2008, 12:35 AM