mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 01:29:38 +02:00
Use StandardExtensionElement in JingleProvider
and some further minor jingle fixes: - deprecate getJingleTransport() in favor of getTransport() - Jingle.Builder now checks if the session ID is not empty
This commit is contained in:
parent
ed9eae4793
commit
7f851d806c
13 changed files with 275 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2015 Florian Schmaus.
|
||||
* Copyright 2015-2017 Florian Schmaus.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -46,6 +46,9 @@ public class StandardExtensionElementParserTest {
|
|||
assertEquals("attr2-value", barNs2Element.getAttributeValue("attr2"));
|
||||
|
||||
assertEquals("another-element-text", parsedElement.getFirstElement("another-element").getText());
|
||||
|
||||
String parsedElementString = parsedElement.toXML().toString();
|
||||
assertEquals(elementString, parsedElementString);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue