[Httpunit-develop] JUnit and HttpUnit problem
Brought to you by:
russgold
From: Rubdi, R. <rr...@kp...> - 2000-09-12 18:08:01
|
To the JUnit and HttpUnit teams, When using Http Unit with JUnit , I'm forced to use java junit.swingui.TestRunner <classname> or java junit.textui.TestRunner <classname> because when I use java junit.swingui.LoadingTestRunner <classname> or java junit.textui.LoadingTestRunner <classname> I get these set of errors Exception in thread "main" java.lang.NoClassDefFoundError: com/meterware/httpuni t/WebRequest at java.lang.Class.getMethod0(Native Method) at java.lang.Class.getMethod(Unknown Source) at junit.swingui.TestRunner.getTest(TestRunner.java:511) at junit.swingui.TestRunner.runSuite(TestRunner.java:680) at junit.swingui.TestRunner.start(TestRunner.java:821) at junit.swingui.LoadingTestRunner.main(LoadingTestRunner.java:21) Please let me know if anyone found a solution to fix this error when you use junit.swingui.LoadingTestRunner or junit.textui.LoadingTestRunner? The problem with java junit.swingui.TestRunner <classname> is that, it does not load test class automatically when you compile the test class and hit the Run button on JUnit. Every time you compile the test file , you need to stop and restart JUnit to do the tests, this is inconvenient and could lead to errors if any compile and run sequence was miscalculated. << File: CheckLinksTest.java >> <<CheckLinksTest.java>> Thank you, Rashmi Rubdi Financial Services Consulting Phone: (212) 954 2409 Cell : (914) 953 0333 KPMG LLP, New York ***************************************************************************** The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. ***************************************************************************** |