mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02: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;
|
boolean go = true;
|
||||||
while (go) {
|
while (go) {
|
||||||
int tag = parser.nextTag();
|
int tag = parser.nextTag();
|
||||||
String n = parser.getText();
|
String n = parser.getName();
|
||||||
|
|
||||||
if (tag == START_TAG) {
|
if (tag == START_TAG) {
|
||||||
switch (n) {
|
switch (n) {
|
||||||
|
|
|
@ -45,6 +45,6 @@ public class ChecksumTest extends SmackTestSuite {
|
||||||
"</checksum>";
|
"</checksum>";
|
||||||
|
|
||||||
assertXMLEqual(xml, checksum.toXML().toString());
|
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…
Add table
Add a link
Reference in a new issue