[JBoss JIRA] (ARQ-1994) Wrong root path in Testcase
by pueffl (JIRA)
[ https://issues.jboss.org/browse/ARQ-1994?page=com.atlassian.jira.plugin.s... ]
pueffl commented on ARQ-1994:
-----------------------------
Thanks Aslak. I tried this before but it didn't work because I did something wrong. I added the files with addAsResouce(...) and get it with getClass().getResourceAsStream("/...") and everything works fine.
> 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
> Assignee: Aslak Knutsen
>
> 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-1992) ServletTestRunner is leaking memmory
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1992?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen closed ARQ-1992.
------------------------------
> ServletTestRunner is leaking memmory
> ------------------------------------
>
> Key: ARQ-1992
> URL: https://issues.jboss.org/browse/ARQ-1992
> Project: Arquillian
> Issue Type: Bug
> Components: Base Implementation
> Affects Versions: 1.1.9.Final
> Environment: Using arquillian with servlet protocol
> Reporter: Tomaz Cerar
> Priority: Critical
> Fix For: 1.1.10.Final
>
>
> ServletTestRunner saves ThreadLocal reference to ServletContex in its init() method,
> and clears it in destroy().
> Problem is that thread that calls init and thread that call destroy() are not guaranteed to be the same thread.
> In wildfly/undertow undeploy/server shotdown is executed in different thread than he one that was used to call servlet init first.
> reproducer and some evaluation on the bug can be found at https://github.com/wildfly/wildfly/issues/8263
--
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 closed ARQ-1994.
------------------------------
Assignee: Aslak Knutsen
Resolution: Rejected
> 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
> Assignee: Aslak Knutsen
>
> 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