Comparing two string failing assertion

Viewed 3662

This is really weird, im trying to assert two strings are equal and it's failing even though it looks to be the same.

    Assert.assertSame("Extra Spicy", type, "type is not extra spicy");

I get this error:

java.lang.AssertionError: type is not extra spicy expected [Extra Spicy] but found [Extra Spicy]
Expected :Extra Spicy
Actual :Extra Spicy

Everything matches, why is it failing?

2 Answers
Related