@Override public void recover() throws JMSException { next.recover(); }
/** * @throws JMSException */ public void recover() throws JMSException { next.recover(); }
@Override public void recover() throws JMSException { next.recover(); }
@Override public void recover() throws JMSException { next.recover(); }
@Override public void recover() throws JMSException { next.recover(); }
/** * Test that an attempt to call the <code>recover()</code> method on a * <strong>transacted </strong> <code>Session</code> throws a * <code>javax.jms.IllegalStateException</code>. */ public void testRecoverTransactedSession() { try { // senderSession has been created as non transacted assertEquals(false, senderSession.getTransacted()); // we create it again but as a transacted session senderSession = senderConnection.createQueueSession(true, 0); assertEquals(true, senderSession.getTransacted()); senderSession.recover(); fail("Should raise an IllegalStateException, the session is not transacted.\n"); } catch (javax.jms.IllegalStateException e) { } catch (java.lang.IllegalStateException e) { fail("Should raise a javax.jms.IllegalStateException, not a java.lang.IllegalStateException.\n"); } catch (Exception e) { fail("Should raise a javax.jms.IllegalStateException, not a " + e); } }
/** * Test that an attempt to call the <code>recover()</code> method on a * <strong>transacted </strong> <code>Session</code> throws a * <code>javax.jms.IllegalStateException</code>. */ @Test public void testRecoverTransactedSession() { try { // senderSession has been created as non transacted Assert.assertEquals(false, senderSession.getTransacted()); // we create it again but as a transacted session senderSession = senderConnection.createQueueSession(true, 0); Assert.assertEquals(true, senderSession.getTransacted()); senderSession.recover(); Assert.fail("Should raise an IllegalStateException, the session is not transacted.\n"); } catch (javax.jms.IllegalStateException e) { } catch (java.lang.IllegalStateException e) { Assert.fail("Should raise a javax.jms.IllegalStateException, not a java.lang.IllegalStateException.\n"); } catch (Exception e) { Assert.fail("Should raise a javax.jms.IllegalStateException, not a " + e); } }