Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14159

(7.1.z) JspTagTestCase fails on Windows

    XMLWordPrintable

Details

    Description

      build.bat clean install failed with
      -------------------------------------------------------------------------------
      Test set: org.jboss.as.test.integration.jsp.JspTagTestCase
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.768 sec <<< FAILURE! - in org.jboss.as.test.integration.jsp.JspTagTestCase
      test(org.jboss.as.test.integration.jsp.JspTagTestCase) Time elapsed: 0.486 sec <<< FAILURE!
      org.junit.ComparisonFailure: expected:<This is a header[

      <div>tag</div>

      Static content]
      > but was:<This is a header[

      <div>tag</div>

      Static content
      ]
      >
      at org.junit.Assert.assertEquals(Assert.java:115)
      at org.junit.Assert.assertEquals(Assert.java:144)
      at org.jboss.as.test.integration.jsp.JspTagTestCase.test(JspTagTestCase.java:67)

      Replacing all occurence of "\n" with System.getProperty("line.separator") in the expected String solved the problem for me.

      Attachments

        Issue Links

          Activity

            People

              tomazcerar Tomaž Cerar (Inactive)
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: