Permalink
Browse files

moved webapp tp src/test

  • Loading branch information...
1 parent 120c236 commit 42900a6bc210c9c16858b22657c51ddbcc48dfee @runepeter committed Oct 19, 2011
@@ -6,7 +6,6 @@
import com.sun.jersey.api.representation.Form;
import no.jforce.jersey.guice.example.repository.BallRepository;
import no.jforce.jersey.guice.example.repository.HashMapBallRepository;
-import no.jforce.jersey.guice.example.test.GuiceAndJerseyTest;
import org.junit.Test;
import javax.ws.rs.core.Response;
@@ -1,11 +1,12 @@
-package no.jforce.jersey.guice.example.test;
+package no.jforce.jersey.guice.example;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.sun.jersey.test.framework.AppDescriptor;
import com.sun.jersey.test.framework.JerseyTest;
import com.sun.jersey.test.framework.LowLevelAppDescriptor;
import no.jforce.jersey.guice.example.ApplicationResourcesModule;
+import no.jforce.jersey.guice.example.test.GuiceInMemoryTestContainerFactory;
public abstract class GuiceAndJerseyTest extends JerseyTest
{
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ version="2.5">
+
+ <listener>
+ <listener-class>no.jforce.jersey.guice.example.web.ApplicationGuiceWebConfig</listener-class>
+ </listener>
+
+ <filter>
+ <filter-name>guiceFilter</filter-name>
+ <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>guiceFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+</web-app>
+

0 comments on commit 42900a6

Please sign in to comment.