@Test public void testConstructorWithCause() { String causeMessage = "How do you know so much about swallows?"; String exMessage = "Well, you have to know these things when you're a king, you know."; final long tabId = 1031L; Exception cause = new Exception(causeMessage); TabUndeletionException sut = new TabUndeletionException(exMessage, cause, tabId); assertSame("Didn't get the input cause exception from getCause()", cause, sut.getCause()); assertEquals("Didn't get the input deleted Tab from getTab()", tabId, sut.getTabId()); assertEquals( "Didn't get the input exception message from getMessage()", exMessage, sut.getMessage()); }
public long getTabId() { return tabId; }
TabUndeletionException extends Exception { public long getTabId() { return tabId; } }
TabUndeletionException extends Exception { public long getTabId() { return tabId; } TabUndeletionException(final String message, final long inTabId);  TabUndeletionException(final String message, final Throwable cause, final long inTabId); }
TabUndeletionException extends Exception { public long getTabId() { return tabId; } TabUndeletionException(final String message, final long inTabId);  TabUndeletionException(final String message, final Throwable cause, final long inTabId); long getTabId(); }
TabUndeletionException extends Exception { public long getTabId() { return tabId; } TabUndeletionException(final String message, final long inTabId);  TabUndeletionException(final String message, final Throwable cause, final long inTabId); long getTabId();  }