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:
parent
0872f66bed
commit
2364208bed
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue