Results 1 to 1 of 1
- 06-21-2011, 02:02 AM #1
Member
- Join Date
- Jul 2009
- Posts
- 18
- Rep Power
- 0
Can I exclude a file from being instantiated by JUnit?
Hello,
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?
Thank you
Similar Threads
-
J2ee developer with junit testing
By mistybws in forum Jobs OfferedReplies: 0Last Post: 10-08-2010, 10:21 PM -
JUNIT testing assertEquals function
By Drun in forum New To JavaReplies: 7Last Post: 01-22-2010, 06:08 PM -
JUnit testing
By hedonist in forum Advanced JavaReplies: 4Last Post: 10-04-2009, 12:06 PM -
Testing tools (Profiling and JUnit)
By ericpinet in forum EclipseReplies: 1Last Post: 04-21-2009, 10:23 PM -
Testing JUnit PDE with Ant
By keynan in forum EclipseReplies: 0Last Post: 02-14-2008, 11:35 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks