mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Add XMPPErrorException.getStanzaError()
Also deprecate getXMPPError and let StanzaError implement ExtensionElement.
This commit is contained in:
parent
651ee7b85e
commit
23bb5c5625
31 changed files with 108 additions and 75 deletions
|
@ -85,8 +85,8 @@ public class SmackIntegrationTestFrameworkUnitTest {
|
|||
FailedTest failedTest = failedTests.get(0);
|
||||
assertTrue(failedTest.failureReason instanceof XMPPErrorException);
|
||||
XMPPErrorException ex = (XMPPErrorException) failedTest.failureReason;
|
||||
assertEquals(StanzaError.Condition.bad_request, ex.getXMPPError().getCondition());
|
||||
assertEquals(ThrowsNonFatalExceptionDummyTest.DESCRIPTIVE_TEXT, ex.getXMPPError().getDescriptiveText());
|
||||
assertEquals(StanzaError.Condition.bad_request, ex.getStanzaError().getCondition());
|
||||
assertEquals(ThrowsNonFatalExceptionDummyTest.DESCRIPTIVE_TEXT, ex.getStanzaError().getDescriptiveText());
|
||||
}
|
||||
|
||||
public static class ThrowsNonFatalExceptionDummyTest extends AbstractSmackIntegrationTest {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue