Can we use strutsTestCase with Junit 4.X? I'm having problem with annotations, If I specify @Test at the beginning of the method and run the Test class, error is thrown telling no tests found.
@Test public void loadPage() throws Exception{ setRequestPathInfo("/StrutsHelloWorldAction"); addRequestParameter("execute", "loadPage"); actionPerform(); verifyForward("hello.world.page"); } Can somebody tell me how to use strutstestcase with junit 4.X annotations. Thanks, Raju
Log in to post a comment.
Can we use strutsTestCase with Junit 4.X? I'm having problem with annotations, If I specify @Test at the beginning of the method and run the Test class, error is thrown telling no tests found.
@Test
public void loadPage() throws Exception{
setRequestPathInfo("/StrutsHelloWorldAction");
addRequestParameter("execute", "loadPage");
actionPerform();
verifyForward("hello.world.page");
}
Can somebody tell me how to use strutstestcase with junit 4.X annotations.
Thanks,
Raju