Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-9931

PropertyEditorsUnitTestCase fails on Windows (both JDK6 and JDK7) due to AssertionFailureError for path issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.3.0.ER1
    • EAP_EWP 5.2.0 ER2, EAP_EWP 5.2.0 ER4, EAP_EWP 5.2.0 ER6
    • None
    • None

    Description

      This testcase fails on windows as the testcase tries to compare absolute path with relative path
      (also note the backslashes)

      The testcase should handle scenario for windows

      Error Message

      PropertyEditor: org.jboss.common.beans.property.FileEditor, getAsText() 'F:\tmp\test1' == expectedStringOutput '/tmp/test1'

      Stacktrace

      junit.framework.AssertionFailedError: PropertyEditor: org.jboss.common.beans.property.FileEditor, getAsText() 'F:\tmp\test1' == expectedStringOutput '/tmp/test1'
      at org.jboss.test.util.test.PropertyEditorsUnitTestCase$PropertyEditorTest.runTest(PropertyEditorsUnitTestCase.java:525)

      Attachments

        Activity

          People

            rhn-cservice-bbaranow Bartosz Baranowski
            madhumita12_jira Madhumita Sadhukhan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: