1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-28 13:38:00 +01:00

Fix faulty ChecksumProvider

This commit is contained in:
vanitasvitae 2017-07-13 15:34:20 +02:00
parent 0872f66bed
commit 2364208bed
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ public class ChecksumProvider extends ExtensionElementProvider<Checksum> {
boolean go = true;
while (go) {
int tag = parser.nextTag();
String n = parser.getText();
String n = parser.getName();
if (tag == START_TAG) {
switch (n) {

View file

@ -45,6 +45,6 @@ public class ChecksumTest extends SmackTestSuite {
"</checksum>";
assertXMLEqual(xml, checksum.toXML().toString());
assertXMLEqual(xml, new ChecksumProvider().parse(TestUtils.getParser(xml)).toXML().toString()); //TODO: Fails
assertXMLEqual(xml, new ChecksumProvider().parse(TestUtils.getParser(xml)).toXML().toString());
}
}