junits
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   pooja_kiran
Posted On:   Wednesday, April 23, 2008 06:13 AM

i have configured my eclipse for junits(including the junit.jar in class path). i have written all the setup, tear down and constructors as well. my code is as follows public void testSearch( ) { try { List list= businessComponent.search( ); assertNull("list is not null!!!test case failed!!"+list); } catch(Throwable ex){ System.out.println("error:"+ex); } } when i right click and select "run as juint test case" the code is giving me "assertion failed error:no test found in com.testJunit"    More>>


i have configured my eclipse for junits(including the junit.jar in class path). i have written all the setup, tear down and constructors as well.

my code is as follows




public void testSearch( ) {
try {
List list= businessComponent.search( );
assertNull("list is not null!!!test case failed!!"+list);
} catch(Throwable ex){
System.out.println("error:"+ex);
}
}



when i right click and select "run as juint test case" the code is giving me "assertion failed error:no test found in com.testJunit"

   <<Less

Re: junits

Posted By:   swami_nathan  
Posted On:   Thursday, April 24, 2008 02:30 AM

Hi make sure you have more methods as @Test as mentioned in the FAQ document. Please refer to the same.
About | Sitemap | Contact