public class SharedObjectAddAbortExceptionTest extends TestCase {
public void testGetTimeout() {
try {
throw new SharedObjectAddAbortException(null, (Throwable) null, 10);
} catch (SharedObjectAddAbortException e) {
assertEquals(10, e.getTimeout());
}
try {
// Regression test for bug #167019
throw new SharedObjectAddAbortException(null, (Map) null, 10);
} catch (SharedObjectAddAbortException e) {
assertEquals(10, e.getTimeout());
}
try {
// Regression test for bug #167019
throw new SharedObjectAddAbortException(null, (List) null,
(Map) null, 10);
} catch (SharedObjectAddAbortException e) {
assertEquals(10, e.getTimeout());
}
}