dcsimg
Gives classcatException for junit.awtui.TestRunner.run(classname)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   uttara_vengurlekar
Posted On:   Wednesday, June 1, 2005 09:08 AM


Please use html tags to format code blocks.

public static void main(String [] args)

{

TestSuite suite = new TestSuite();
suite.addTestSuite(TestAuthenticationStartup.class);

junit.textui.TestRunner.run(suite);

//junit.awtui.TestRunner.run(TestAuthenticationStartup.class);
}
for above code ,
for junit.textui.TestRunner.run(suite) test results are
ok.But for
junit.awtui.TestRunner.run(TestAuthenticationStartup.class);
gives classcastException.

Why this is so?

Re: Gives classcatException for junit.awtui.TestRunner.run(classname)

Posted By:   Stephen_Smith  
Posted On:   Monday, July 25, 2005 09:52 AM

You should have Googled for this one - it's a very common JUnit issue.
About | Sitemap | Contact