mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Remove SynchronizationPoint
This continues the design started with e98d42790
("SmackReactor/NIO,
Java8/Android19, Pretty print XML, FSM connections"), where the
exceptions that caused an operation to fail, are not recorded within
SynchronizationPoint but within the connection instance itself.
This commit is contained in:
parent
b1a4ccfae8
commit
57961a8cc1
15 changed files with 352 additions and 684 deletions
|
@ -38,12 +38,7 @@ public class WaitForClosingStreamElementTest extends AbstractSmackLowLevelIntegr
|
|||
|
||||
Field closingStreamReceivedField = AbstractXMPPConnection.class.getDeclaredField("closingStreamReceived");
|
||||
closingStreamReceivedField.setAccessible(true);
|
||||
SynchronizationPoint<?> closingStreamReceived = (SynchronizationPoint<?>) closingStreamReceivedField.get(connection);
|
||||
Exception failureException = closingStreamReceived.getFailureException();
|
||||
if (failureException != null) {
|
||||
throw new AssertionError("Sync poing yielded failure exception", failureException);
|
||||
}
|
||||
boolean closingStreamReceivedSuccessful = closingStreamReceived.wasSuccessful();
|
||||
assertTrue(closingStreamReceivedSuccessful);
|
||||
boolean closingStreamReceived = (boolean) closingStreamReceivedField.get(connection);
|
||||
assertTrue(closingStreamReceived);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue