List of usage examples for javax.naming InterruptedNamingException InterruptedNamingException
public InterruptedNamingException()
From source file:org.marketcetera.util.except.ExceptUtilsTest.java
@Test public void interruptException() { assertFalse(ExceptUtils.isInterruptException(new CloneNotSupportedException())); assertTrue(ExceptUtils.isInterruptException(new InterruptedException())); assertTrue(ExceptUtils.isInterruptException(new InterruptedIOException())); assertTrue(ExceptUtils.isInterruptException(new ClosedByInterruptException())); assertTrue(ExceptUtils.isInterruptException(new FileLockInterruptionException())); assertTrue(ExceptUtils.isInterruptException(new InterruptedNamingException())); assertTrue(ExceptUtils.isInterruptException(new I18NInterruptedException())); assertTrue(ExceptUtils.isInterruptException(new I18NInterruptedRuntimeException())); }
From source file:org.marketcetera.util.except.ExceptUtilsTest.java
@Test public void interrupt() { interruptHelper(new CloneNotSupportedException(), false); interruptHelper(new InterruptedException(), true); interruptHelper(new InterruptedIOException(), true); interruptHelper(new ClosedByInterruptException(), true); interruptHelper(new FileLockInterruptionException(), true); interruptHelper(new InterruptedNamingException(), true); interruptHelper(new I18NInterruptedException(), true); interruptHelper(new I18NInterruptedRuntimeException(), true); }
From source file:org.marketcetera.util.except.ExceptUtilsTest.java
@Test public void swallow() { swallowHelper(new CloneNotSupportedException(), false); swallowHelper(new InterruptedException(), true); swallowHelper(new InterruptedIOException(), true); swallowHelper(new ClosedByInterruptException(), true); swallowHelper(new FileLockInterruptionException(), true); swallowHelper(new InterruptedNamingException(), true); swallowHelper(new I18NInterruptedException(), true); swallowHelper(new I18NInterruptedRuntimeException(), true); }
From source file:org.marketcetera.util.except.ExceptUtilsTest.java
@Test public void wrap() { wrapHelper(new CloneNotSupportedException(), false); wrapHelper(new InterruptedException(), true); wrapHelper(new InterruptedIOException(), true); wrapHelper(new ClosedByInterruptException(), true); wrapHelper(new FileLockInterruptionException(), true); wrapHelper(new InterruptedNamingException(), true); wrapHelper(new I18NInterruptedException(), true); wrapHelper(new I18NInterruptedRuntimeException(), true); }