From 5102acc98586bff7282982494bc9008f5b8e72be Mon Sep 17 00:00:00 2001 From: Thiago Camargo Date: Fri, 9 Feb 2007 03:48:58 +0000 Subject: [PATCH] Changes to decline a session git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7062 b35dd754-fafc-0310-a699-88a17e54d16e --- .../smackx/jingle/JingleManagerTest.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/jingle/extension/test/org/jivesoftware/smackx/jingle/JingleManagerTest.java b/jingle/extension/test/org/jivesoftware/smackx/jingle/JingleManagerTest.java index 5d252ff9f..580466d68 100644 --- a/jingle/extension/test/org/jivesoftware/smackx/jingle/JingleManagerTest.java +++ b/jingle/extension/test/org/jivesoftware/smackx/jingle/JingleManagerTest.java @@ -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);