-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor enhancements, fixes and dep upgrades
- upgrade to JBoss AS 7.1.1.Final - update build.gradle to work with Arquillian 1.0.0.Final - fix jaxws project - add test for named query in jpa project - add fest library to autodiscover extension - don't includle version of dep in UI test war - fix spacing in pom files
- Loading branch information
1 parent
70a4a97
commit fc5572a
Showing
25 changed files
with
708 additions
and
601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,22 +17,22 @@ | |
*/ | ||
package org.jboss.arquillian.showcase.extension.autodiscover; | ||
|
||
import static org.fest.assertions.Assertions.assertThat; | ||
|
||
import javax.enterprise.inject.Produces; | ||
|
||
import org.jboss.arquillian.container.test.api.Deployment; | ||
import org.jboss.arquillian.junit.Arquillian; | ||
import org.jboss.shrinkwrap.api.ShrinkWrap; | ||
import org.jboss.shrinkwrap.api.asset.EmptyAsset; | ||
import org.jboss.shrinkwrap.api.spec.WebArchive; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.mockito.Mock; | ||
import org.mockito.Mockito; | ||
|
||
/** | ||
* | ||
* @author <a href="mailto:[email protected]">Aslak Knutsen</a> | ||
* @version $Revision: $ | ||
*/ | ||
|
@@ -56,6 +56,6 @@ public void setupMock() { | |
|
||
@Test | ||
public void shouldBeAbleToMock(Manager manager) throws Exception { | ||
Assert.assertEquals(100, manager.execute(100)); | ||
assertThat(manager.execute(100)).isEqualTo(100); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,12 @@ | |
|
||
import org.jboss.arquillian.container.test.api.Deployment; | ||
import org.jboss.arquillian.junit.Arquillian; | ||
import org.jboss.arquillian.test.api.ArquillianResource; | ||
import org.jboss.shrinkwrap.api.ShrinkWrap; | ||
import org.jboss.shrinkwrap.api.asset.StringAsset; | ||
import org.jboss.shrinkwrap.api.spec.WebArchive; | ||
import org.jboss.shrinkwrap.descriptor.api.Descriptors; | ||
import org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor; | ||
import org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
@@ -20,25 +21,29 @@ | |
* Tests simple stateless web service endpoint invocation. | ||
* | ||
* @author <a href="mailto:[email protected]">Richard Opalka</a> | ||
* @author <a href="http://community.jboss.org/people/dan.j.allen">Dan Allen</a> | ||
*/ | ||
@RunWith(Arquillian.class) | ||
public class EchoWebServiceEndpointTestCase { | ||
|
||
@Deployment | ||
private static final String ECHO_SERVICE_NAME = "EchoService"; | ||
|
||
@Deployment(testable = false) | ||
public static WebArchive createDeployment() { | ||
WebAppDescriptor webXml = Descriptors.create(WebAppDescriptor.class); | ||
|
||
return ShrinkWrap.create(WebArchive.class, "jaxws-endpoint-test.war") | ||
.addPackage(EchoWebServiceEndpointBean.class.getPackage()) | ||
.setWebXML(new StringAsset(webXml | ||
.servlet("EchoService", EchoWebServiceEndpointBean.class.getName(), new String[] { "/EchoService" }) | ||
.setWebXML(new StringAsset(webXml.createServlet() | ||
.servletName(ECHO_SERVICE_NAME).servletClass(EchoWebServiceEndpointBean.class.getName()).up() | ||
.createServletMapping().servletName(ECHO_SERVICE_NAME).urlPattern("/" + ECHO_SERVICE_NAME).up() | ||
.exportAsString())); | ||
} | ||
|
||
@Test | ||
public void testSimpleStatelessWebServiceEndpoint() throws Exception { | ||
final QName serviceName = new QName("com.acme.jaxws", "EchoService"); | ||
final URL wsdlURL = new URL("http://localhost:8080/jaxws-endpoint-test/EchoService?wsdl"); | ||
public void testSimpleStatelessWebServiceEndpoint(@ArquillianResource URL deploymentUrl) throws Exception { | ||
final QName serviceName = new QName("com.acme.jaxws", ECHO_SERVICE_NAME); | ||
final URL wsdlURL = new URL(deploymentUrl, ECHO_SERVICE_NAME + "?wsdl"); | ||
final Service service = Service.create(wsdlURL, serviceName); | ||
final EchoWebServiceEndpoint port = service.getPort(EchoWebServiceEndpoint.class); | ||
final String result = port.echo("hello"); | ||
|
Oops, something went wrong.