-
Bug
-
Resolution: Fixed
-
Medium
-
2.0.4
-
None
I added the following test to our build:
package com.concerto; import static org.junit.Assert.assertEquals; import org.junit.Test; public class BambooTest { @Test public void testAssertEqualsNoMessage() { assertEquals("monkey", "butter"); } @Test public void testAssertEqualsMessage() { assertEquals("message", "monkey", "butter"); } }
And got the following information about the failed test in Bamboo:
BambooTest : Assert equals no message (testAssertEqualsNoMessage) History at com.concerto.BambooTest.testAssertEqualsNoMessage(BambooTest.java:11) BambooTest : Assert equals message (testAssertEqualsMessage) History at com.concerto.BambooTest.testAssertEqualsMessage(BambooTest.java:16)
The message, expected value & actual value are all missing.
The junit result xml file contains this:
<testcase classname="com.concerto.BambooTest" name="testAssertEqualsNoMessage" time="0.018"> <error message="expected:<[monkey]> but was:<[butter]>" type="org.junit.ComparisonFailure"> at com.concerto.BambooTest.testAssertEqualsNoMessage(BambooTest.java:11) </error> </testcase> <testcase classname="com.concerto.BambooTest" name="testAssertEqualsMessage" time="-0.0080"> <error message="message expected:<[monkey]> but was:<[butter]>" type="org.junit.ComparisonFailure"> at com.concerto.BambooTest.testAssertEqualsMessage(BambooTest.java:16) </error> </testcase>