strange bug in good old KiWo result import regarding comparison with   ( (byte)160 vs. (char)160)

This commit is contained in:
Axel Uhl committed 2013-04-16 22:53:13 +02:00
1 parent 2cbe005dbb
commit 23e6a5f53b
1 file changed
+1 -1
@@ -96,7 +96,7 @@ public class ParserTest {
ResultList resultList = parser.parse(getSampleInputStream(), SAMPLE_INPUT_NAME);
assertNotNull(resultList);
assertEquals("D:\\Programme\\KWSailing\\eventlogos\\KielerWoche_Ergebnislistenkopf_2011.jpg", resultList.getImagePath());
assertEquals(new String(new byte[] { (byte) 160 /* non-breaking space */}), resultList.getLegend());
assertEquals(new String(new char[] { (char) 160 /* non-breaking space */}), resultList.getLegend());
Iterable<Boat> boats = resultList.getBoats();
assertFalse(Util.isEmpty(boats));
assertEquals(48, Util.size(boats));