mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-27 06:38:01 +01:00
Changes to decline a session
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7062 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
94a7762d9d
commit
5102acc985
1 changed files with 11 additions and 3 deletions
|
@ -530,7 +530,15 @@ public class JingleManagerTest extends SmackTestCase {
|
|||
+ request.getFrom() + ": rejecting.");
|
||||
|
||||
// We reject the request
|
||||
request.reject();
|
||||
try {
|
||||
IncomingJingleSession session = request.accept(null);
|
||||
session.start();
|
||||
session.terminate();
|
||||
}
|
||||
catch (XMPPException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -561,9 +569,9 @@ public class JingleManagerTest extends SmackTestCase {
|
|||
}
|
||||
});
|
||||
|
||||
session0.start(null);
|
||||
session0.start();
|
||||
|
||||
Thread.sleep(20000);
|
||||
Thread.sleep(10000);
|
||||
|
||||
assertTrue(valCounter() > 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue