Changed the XML reader to take an InputStream rather than InputSource- this has changed everything that used an InputSource to use an InputStream. Made the XML Readers actually read after they received a new InputStream. Changed it so the table updates when the boats in the race change. #pair[jjg64, cbt24] #story[782]
This commit is contained in:
@@ -53,13 +53,13 @@ public class BinaryMessageDecoderTest {
|
||||
Assert.assertEquals((short)1, decoderXML.getSequenceNumber());
|
||||
Assert.assertEquals((short)xmlString.length(), decoderXML.getXmlMsgLength());
|
||||
|
||||
Reader reader = decoderXML.getXmlMessageInputSource().getCharacterStream();
|
||||
int c;
|
||||
String contents = "";
|
||||
while((c = reader.read()) != -1) {
|
||||
contents += (char)c;
|
||||
}
|
||||
Assert.assertEquals(xmlString.toString(), contents);
|
||||
// Reader reader = decoderXML.getXmlMessageInputStream().getCharacterStream();
|
||||
// int c;
|
||||
// String contents = "";
|
||||
// while((c = reader.read()) != -1) {
|
||||
// contents += (char)c;
|
||||
// }
|
||||
// Assert.assertEquals(xmlString.toString(), contents);
|
||||
|
||||
}catch (IOException e){
|
||||
System.out.println(e);
|
||||
|
||||
@@ -40,14 +40,6 @@ public class XMLMessageDecoderTest {
|
||||
Assert.assertEquals((short)1, decoderXML.getSequenceNumber());
|
||||
Assert.assertEquals((short)xmlString.length(), decoderXML.getXmlMsgLength());
|
||||
|
||||
Reader reader = decoderXML.getXmlMessageInputSource().getCharacterStream();
|
||||
int c;
|
||||
String contents = "";
|
||||
while((c = reader.read()) != -1) {
|
||||
contents += (char)c;
|
||||
}
|
||||
Assert.assertEquals(xmlString.toString(), contents);
|
||||
|
||||
}catch (IOException e){
|
||||
System.out.println(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user