Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleaned up JAX-RS quickstart in preparation for Errai 3

  • Loading branch information...
commit 2bc69d9614704b279453face26621832f367fb85 1 parent 12680a9
@csadilek csadilek authored
View
1  jaxrs-quickstart/src/main/resources/archetype-resources/pom.xml
@@ -415,6 +415,7 @@
<id>integration-test</id>
<properties>
<profile.testOutputDirectory>src/main/webapp/WEB-INF/classes</profile.testOutputDirectory>
+ <webDescriptor>jetty</webDescriptor>
</properties>
<build>
View
5 jaxrs-quickstart/src/main/resources/archetype-resources/src/main/java/App.gwt.xml
@@ -17,8 +17,7 @@
-->
<module rename-to="App">
<inherits name='com.google.gwt.user.User'/>
- <inherits name="org.jboss.errai.common.ErraiCommon"/>
- <inherits name="org.jboss.errai.ioc.Container"/>
- <inherits name="org.jboss.errai.enterprise.Jaxrs"/>
+ <inherits name="org.jboss.errai.enterprise.Jaxrs"/>
+ <inherits name="org.jboss.errai.ioc.Container"/>
</module>
View
10 jaxrs-quickstart/src/main/resources/archetype-resources/src/test/java/client/local/ClientUiTest.java
@@ -1,6 +1,8 @@
package ${package}.client.local;
import org.jboss.errai.enterprise.client.jaxrs.test.AbstractErraiJaxrsTest;
+import org.jboss.errai.ioc.client.Container;
+
import static org.junit.Assert.*;
import org.junit.Test;
@@ -16,13 +18,9 @@ public String getModuleName() {
@Override
protected void gwtSetUp() throws Exception {
super.gwtSetUp();
- setJaxRsApplicationRoot("/");
+ new Container().bootstrapContainer();
}
-
- public native void setJaxRsApplicationRoot(String path) /*-{
- $wnd.erraiJaxRsApplicationRoot = path;
- }-*/;
-
+
@Test
public void testPopulateCustomersTable() {
ErraiIocTestHelper.afterIocInitialized(new Runnable() {
Please sign in to comment.
Something went wrong with that request. Please try again.