[jboss-jira] [JBoss JIRA] (WFLY-9740) JspTagTestCase fails on Windows

Chao Wang (JIRA) issues at jboss.org
Sun Jan 28 22:07:00 EST 2018


Chao Wang created WFLY-9740:
-------------------------------

             Summary: JspTagTestCase fails on Windows
                 Key: WFLY-9740
                 URL: https://issues.jboss.org/browse/WFLY-9740
             Project: WildFly
          Issue Type: Bug
          Components: Test Suite
    Affects Versions: 10.1.0.CR1
         Environment: Windows 10, Oracle JDK 1.8.0_92
            Reporter: Chao Wang
            Assignee: Tomaz Cerar
             Fix For: 12.0.0.Alpha1


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.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list