[JBoss JIRA] Created: (ARQ-222) For the JSFUnit integration to work we need JSFUnit 1.3 released.
by Aslak Knutsen (JIRA)
For the JSFUnit integration to work we need JSFUnit 1.3 released.
-----------------------------------------------------------------
Key: ARQ-222
URL: https://jira.jboss.org/browse/ARQ-222
Project: Arquillian
Issue Type: Task
Components: Frameworks
Reporter: Aslak Knutsen
Assignee: Aslak Knutsen
Priority: Blocker
Fix For: 1.0.0.Alpha3
Since JSFUnit integration is a major feature of Alpha-3, we need to hold the release until it's available to the end user and we can verify the 1.3.FINAL release with Arquillian.
-- Stan Silvert ---
I can do a snapshot for you, but there is a hitch. JSFUnit 1.3 now
needs HtmlUnit 2.8-SNAPSHOT. Unfortunately, the snapshot isn't
available from our Nexus server and you have to install it locally.
HtmlUnit final should be out any day now. I think the plan was to
release today but I don't see it yet. As soon as it's available I will
then do the JSFUnit 1.3.0.Final release.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months
[JBoss JIRA] Created: (ARQ-242) Cannot run tests with jetty7 embedded profile
by Adam Warski (JIRA)
Cannot run tests with jetty7 embedded profile
---------------------------------------------
Key: ARQ-242
URL: https://jira.jboss.org/browse/ARQ-242
Project: Arquillian
Issue Type: Bug
Components: Jetty Containers
Affects Versions: 1.0.0.Alpha3
Reporter: Adam Warski
When trying to run a test where a simple servlet is deployed, I get the following exception:
java.lang.IllegalStateException: Service org.jboss.arquillian.container.jetty.embedded_7.JettyEmbeddedConfiguration does not implement expected type org.jboss.arquillian.spi.ContainerConfiguration
at org.jboss.arquillian.spi.util.ServiceLoader.reload(ServiceLoader.java:190)
at org.jboss.arquillian.spi.util.ServiceLoader.getProviders(ServiceLoader.java:282)
at org.jboss.arquillian.impl.DynamicServiceLoader.all(DynamicServiceLoader.java:39)
at org.jboss.arquillian.impl.XmlConfigurationBuilder.build(XmlConfigurationBuilder.java:102)
at org.jboss.arquillian.testng.Arquillian.arquillianBeforeSuite(Arquillian.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:643)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:446)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:162)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:92)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
at org.testng.SuiteRunner.run(SuiteRunner.java:193)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.jboss.arquillian.testng.TestNGTestRunner.execute(TestNGTestRunner.java:54)
at org.jboss.arquillian.protocol.servlet_3.ServletTestRunner.doGet(ServletTestRunner.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:426)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:931)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:361)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
at org.eclipse.jetty.server.Server.handle(Server.java:337)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:581)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1005)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:560)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:222)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:417)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:474)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:437)
at java.lang.Thread.run(Thread.java:637)
The test is:
public class SimpleTest extends Arquillian {
@Deployment
public static WebArchive createDeployment() {
return ShrinkWrap.create(WebArchive.class, "simpletest.war")
.addWebResource("WEB-INF/web.xml", ArchivePaths.create("web.xml"));
}
@Test
public void shouldBeAbleToCallServlet() throws Exception {
String body = new RichStream(new URL("http://localhost:8080/simpletest").openStream()).asString();
Assert.assertEquals(
"Verify that the servlet was deployed and returns the expected result",
"hello",
body);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months
[JBoss JIRA] Created: (ARQ-254) Use @Deployment on non-static method
by Elias Ross (JIRA)
Use @Deployment on non-static method
------------------------------------
Key: ARQ-254
URL: https://jira.jboss.org/browse/ARQ-254
Project: Arquillian
Issue Type: Feature Request
Reporter: Elias Ross
Some tests I have test the deployment as is, some tests add in additional EJBs. (I exclude certain EJBs and MDBs to speed up testing.)
This is currently what I do:
@RunWith(org.jboss.arquillian.junit.Arquillian.class)
public class DeploymentTest {
private static List<Class> ejb = new ArrayList<Class>();
protected static void addClass(Class c) {
ejb.add(c);
}
@Deployment
public static Archive createTestArchive() throws Exception { ... }
}
public class XXXTest extends DeploymentTest {
static {
addClass(FooEJB.class);
addClass(BarEJB.class);
}
@Deployment
public static Archive createTestArchive() throws Exception { return DeploymentTest.createTestArchive(); }
}
It'd be nice if, in the case of @Deployment on a non-static class, Arquillian could just created a new instance of the class and obtain the deployment that way. So, it'd look like this:
@RunWith(org.jboss.arquillian.junit.Arquillian.class)
public class DeploymentTest {
private List<Class> ejb = new ArrayList<Class>();
protected void addClass(Class c) {
ejb.add(c);
}
@Deployment
public static Archive createTestArchive() throws Exception { ... }
}
public class XXXTest extends DeploymentTest {
{
addClass(FooEJB.class);
addClass(BarEJB.class);
}
}
e.g. you do new XXXTest().createTestArchive() instead...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months