From: David ‘Bombe’ Roden Date: Fri, 21 Dec 2012 06:32:18 +0000 (+0100) Subject: Fix unit test failure. X-Git-Tag: 0.8.5^2~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b56a6a037ee7a589636f8c8de88d6394acf517ff;p=Sone.git Fix unit test failure. --- diff --git a/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java b/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java index 7baceaa..b00fcfe 100644 --- a/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java +++ b/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java @@ -133,7 +133,7 @@ public class SoneTextParserTest extends TestCase { } } if (!classValid) { - assertEquals("Part’s Class", null, part.getClass()); + fail("Part’s Class (" + part.getClass() + ") is not one of " + Arrays.toString(validClasses)); } if (part instanceof PlainTextPart) { text.append(((PlainTextPart) part).getText());