Closed GoogleCodeExporter closed 9 years ago
@RunWith(PowerMockRunner.class)
public class TestSipServlet {
//PowerMockRunner p;
@Test
public void testDoRequest1() throws Exception {
SipServletRequest request = createStrictMock(SipServletRequest.class);
}
}
Original comment by sri.nara...@gmail.com
on 16 Mar 2011 at 8:40
Could you please provide a small example project that demonstrates the issue?
Original comment by johan.ha...@gmail.com
on 18 Mar 2011 at 10:16
Hi , including the glassfish servlet dependency solved the problem;
Earlier I have the maven javaee dependency alone;
I am still unclear of why adding glassfish dependency solves the problem.
But it has something to do with the ServletException class ;
---------------------------------------------------------------------
solved by adding the below code in my pom.xml in addition powermock easymock
dependencies
--------------------------------------------------------------------
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.servlet</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
<repositories>
<repository>
<id>glassfish-repository</id>
<url>http://download.java.net/maven/glassfish</url>
</repository>
</repositories>
-----------------------------------------------------------------------
Original comment by sri.nara...@gmail.com
on 18 Mar 2011 at 6:33
Ok so I'm closing this issue. Still seems quite strange to me that added the
dependency solved the issue.
Original comment by johan.ha...@gmail.com
on 22 Mar 2011 at 10:30
Original issue reported on code.google.com by
sri.nara...@gmail.com
on 16 Mar 2011 at 8:39