Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-442

FileUtilsTest fail on Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • Ubuntu Linux 7.04- SUN Java 6 (1.6.0-b105), Eclipse 3.3RC3, Maven 2.0.6

    Description

      The FileUtilsTest fails on linux while using windows path:

      base = new File("c:/foo/bar/baz/dir/");
      target = new File("c:/foo/d1/d2/d3/blah.xml");
      assertEquals("../../../d1/d2/d3/blah.xml",
      FileUtils.findRelativePath(target, base));

      Eclipse JUnit trace:
      junit.framework.ComparisonFailure: expected:<...../../d1/d2/d3/...> but was:<...c:\foo\d1\d2\d3\...>
      at junit.framework.Assert.assertEquals(Assert.java:81)
      at junit.framework.Assert.assertEquals(Assert.java:87)
      at org.apache.uima.util.FileUtilsTest.testFindRelativePath(FileUtilsTest.java:41)
      [snip]

      Maven fails too:
      ...
      Running org.apache.uima.util.FileUtilsTest
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec <<< FAILURE!
      ...
      Results :

      Failed tests:
      testFindRelativePath(org.apache.uima.util.FileUtilsTest)

      Tests run: 363, Failures: 1, Errors: 0, Skipped: 0
      ...

      Attachments

        Activity

          People

            alally Adam P. Lally
            robfrank Roberto Franchini
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: