You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2012/02/13 05:02:12 UTC
svn commit: r1243408 -
/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-embedded/src/test/java/org/apache/openejb/arquillian/embedded/EmbeddedTomEEContainerTest.java
Author: dblevins
Date: Mon Feb 13 04:02:12 2012
New Revision: 1243408
URL: http://svn.apache.org/viewvc?rev=1243408&view=rev
Log:
reformatted
Modified:
openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-embedded/src/test/java/org/apache/openejb/arquillian/embedded/EmbeddedTomEEContainerTest.java
Modified: openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-embedded/src/test/java/org/apache/openejb/arquillian/embedded/EmbeddedTomEEContainerTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-embedded/src/test/java/org/apache/openejb/arquillian/embedded/EmbeddedTomEEContainerTest.java?rev=1243408&r1=1243407&r2=1243408&view=diff
==============================================================================
--- openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-embedded/src/test/java/org/apache/openejb/arquillian/embedded/EmbeddedTomEEContainerTest.java (original)
+++ openejb/trunk/openejb/arquillian-tomee/arquillian-tomee-embedded/src/test/java/org/apache/openejb/arquillian/embedded/EmbeddedTomEEContainerTest.java Mon Feb 13 04:02:12 2012
@@ -29,7 +29,6 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import javax.ejb.EJB;
-
import java.net.URL;
import static junit.framework.Assert.assertEquals;
@@ -38,25 +37,27 @@ import static junit.framework.Assert.ass
@RunWith(Arquillian.class)
// @RunAsClient
public class EmbeddedTomEEContainerTest {
- @Deployment public static WebArchive createDeployment() {
- return ShrinkWrap.create(WebArchive.class, "test.war")
- .addClass(AnEJB.class).addClass(AServlet.class).addClass(ARestService.class)
- .setWebXML(new StringAsset(Descriptors.create(WebAppDescriptor.class)
- .version("3.0").exportAsString()));
+ @Deployment
+ public static WebArchive createDeployment() {
+ return ShrinkWrap.create(WebArchive.class, "test.war").addClass(AnEJB.class).addClass(AServlet.class).addClass(ARestService.class).setWebXML(new StringAsset(Descriptors.create(WebAppDescriptor.class).version("3.0").exportAsString()));
}
- @EJB private AnEJB ejb;
+ @EJB
+ private AnEJB ejb;
- @Test public void testEjbIsNotNull() throws Exception {
- assertNotNull(ejb);
+ @Test
+ public void testEjbIsNotNull() throws Exception {
+ assertNotNull(ejb);
}
- @Test public void servletIsDeployed() throws Exception {
+ @Test
+ public void servletIsDeployed() throws Exception {
final String read = IOUtils.toString(new URL("http://localhost:8080/test/a-servlet").openStream());
assertEquals("ok=true", read);
}
- @Test public void restServiceIsDeployed() throws Exception {
+ @Test
+ public void restServiceIsDeployed() throws Exception {
final String read = IOUtils.toString(new URL("http://localhost:8080/test/rest/foo").openStream());
assertEquals("foo", read);
}