Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Updated the README to remove GwtArchive and use plain ShrinkWrap instead
Browse files Browse the repository at this point in the history
  • Loading branch information
csadilek committed Apr 15, 2013
1 parent 7f716ad commit ba42668
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Expand Up @@ -39,20 +39,19 @@ public class MyTestClass {
}
}
```
To help packaging your app for the test deployment Arquillian GWT provides a simple utility called `GwtArchive`.
The next version of Arquillian GWT will automatically enhance the used `WebArchive`. So, you won't need to use
this utility in the future. Here's a complete example:
Here's a complete example:

```java
@RunWith(Arquillian.class)
public class GreeterRpcTest extends ArquillianGwtTestCase {

@Deployment
public static WebArchive createDeployment() {
return GwtArchive.get()
return ShrinkWrap.create(WebArchive.class, "test.war")
.addClass(Greeter.class)
.addClass(GreetingService.class)
.addClass(GreetingServiceImpl.class);
.addClass(GreetingServiceImpl.class)
.addAsWebInfResource(new File("src/main/webapp/WEB-INF/web.xml"));
}

@Test
Expand Down

0 comments on commit ba42668

Please sign in to comment.