Hi All,
I am trying to integrate my code with the JerseyTest and am facing a issue.
I don't have a spring-configuration.xml class. I use annotations for
configuring my spring.
How can I use this to pass the information to initialize my JerseyTest
class.
I noticed this as the way to implement it but I don't have a spring config
file.
<code>
super(new WebAppDescriptor.Builder("my.package")
.contextPath("test-rest")
.contextParam("contextConfigLocation",
"classpath:spring-test.xml")
.servletClass(SpringServlet.class)
.contextListenerClass(ContextLoaderListener.class)
.build());
</code>
Also, I wanted to run this test inside another framework. Because of this,
I already have a applicationContext object available. Can I use it (inject
into the Grizzly server)
I am using the following
<dependency>
<groupId>com.sun.jersey.jersey-test-framework</groupId>
<artifactId>jersey-test-framework-grizzly2</artifactId>
</dependency>
Thanks in advance.
Regards,
Varesh Tapadia