[JBoss JIRA] (ARQ-1989) Video-impl-base fail if no impl is on classpath
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-1989?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek updated ARQ-1989:
--------------------------------
Fix Version/s: recorder_1.1.0.Alpha5
> Video-impl-base fail if no impl is on classpath
> -----------------------------------------------
>
> Key: ARQ-1989
> URL: https://issues.jboss.org/browse/ARQ-1989
> Project: Arquillian
> Issue Type: Enhancement
> Components: Extension - Recorder
> Affects Versions: recorder_1.1.0.Alpha3
> Reporter: Aslak Knutsen
> Fix For: recorder_1.1.0.Alpha5
>
>
> {code}
> java.lang.NullPointerException
> at org.arquillian.extension.recorder.video.impl.VideoLifecycleObserver.beforeSuite(VideoLifecycleObserver.java:93)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:75)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
> {code}
> With no Video Recorder Implementation on classpath the Video Impl fail. Even tho it has a DefaultVideoStrategy it can use, the registration of this service rely on the VideoExtensionConfigured event which is never fired if no Video impl is found on classpath. Attempting to read that strategy then fails with a NPE.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (ARQ-1989) Video-impl-base fail if no impl is on classpath
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-1989?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek updated ARQ-1989:
--------------------------------
Fix Version/s: (was: recorder_1.1.0.Alpha4)
> Video-impl-base fail if no impl is on classpath
> -----------------------------------------------
>
> Key: ARQ-1989
> URL: https://issues.jboss.org/browse/ARQ-1989
> Project: Arquillian
> Issue Type: Enhancement
> Components: Extension - Recorder
> Affects Versions: recorder_1.1.0.Alpha3
> Reporter: Aslak Knutsen
>
> {code}
> java.lang.NullPointerException
> at org.arquillian.extension.recorder.video.impl.VideoLifecycleObserver.beforeSuite(VideoLifecycleObserver.java:93)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:75)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
> at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
> {code}
> With no Video Recorder Implementation on classpath the Video Impl fail. Even tho it has a DefaultVideoStrategy it can use, the registration of this service rely on the VideoExtensionConfigured event which is never fired if no Video impl is found on classpath. Attempting to read that strategy then fails with a NPE.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (ARQ-1994) Wrong root path in Testcase
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1994?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen commented on ARQ-1994:
------------------------------------
This is not a bug. This is the effect of in-container testing. If you run in-container the test code is executed inside the server not inside your 'IDE'.
You have 2 options;
1. You really wanted to run the test on the client side and only reach the deployment via external exported endpoints, e.g. http, then you can use @Deployment.testable=false.
2. Or you want to test in-container but require resources only available on the client side. Then add those resources to the Deployment and load them via the Classloader, not file system.
> Wrong root path in Testcase
> ---------------------------
>
> Key: ARQ-1994
> URL: https://issues.jboss.org/browse/ARQ-1994
> Project: Arquillian
> Issue Type: Bug
> Affects Versions: 1.1.8.Final, 1.1.9.Final
> Reporter: pueffl
>
> After deploying a .war to JBoss Wildfly, I start a Testcase and want to read a XML-File from the filesystem (relative path -> <Project>/target/test-classes). As this didn't work, I checked the path: System.out.println(new File("test.txt").getAbsolutePath());
> The result was <WILDFLY-HOME/bin/test.txt which was really a big surprise! :-)
> I am not absolutely sure if this is a bug, but it hampers testing a lot in some cases and it should at least be better documented. (I couldn't find information about this behavior so far.)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (ARQ-1994) Wrong root path in Testcase
by pueffl (JIRA)
pueffl created ARQ-1994:
---------------------------
Summary: Wrong root path in Testcase
Key: ARQ-1994
URL: https://issues.jboss.org/browse/ARQ-1994
Project: Arquillian
Issue Type: Bug
Affects Versions: 1.1.9.Final, 1.1.8.Final
Reporter: pueffl
After deploying a .war to JBoss Wildfly, I start a Testcase and want to read a XML-File from the filesystem (relative path -> <Project>/target/test-classes). As this didn't work, I checked the path: System.out.println(new File("test.txt").getAbsolutePath());
The result was <WILDFLY-HOME/bin/test.txt which was really a big surprise! :-)
I am not absolutely sure if this is a bug, but it hampers testing a lot in some cases and it should at least be better documented. (I couldn't find information about this behavior so far.)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months