Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1994

Wrong root path in Testcase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.1.8.Final, 1.1.9.Final
    • None
    • None

      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.)

            aslak@redhat.com Aslak Knutsen
            pueffl pueffl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: