@Test public void testConstructorNoCause() { String exMessage = "This statement is false."; Tab deletedTab = context.mock(Tab.class); TabDeletionException sut = new TabDeletionException(exMessage, deletedTab); assertSame("Didn't get the input deleted Tab from getTab()", deletedTab, sut.getTab()); assertEquals( "Didn't get the input exception message from getMessage()", exMessage, sut.getMessage()); }
public Tab getTab() { return tab; }
TabDeletionException extends Exception { public Tab getTab() { return tab; } }
TabDeletionException extends Exception { public Tab getTab() { return tab; } TabDeletionException(final String message, final Tab inTab);  TabDeletionException(final String message, final Throwable cause, final Tab inTab); }
TabDeletionException extends Exception { public Tab getTab() { return tab; } TabDeletionException(final String message, final Tab inTab);  TabDeletionException(final String message, final Throwable cause, final Tab inTab); Tab getTab(); }
TabDeletionException extends Exception { public Tab getTab() { return tab; } TabDeletionException(final String message, final Tab inTab);  TabDeletionException(final String message, final Throwable cause, final Tab inTab); Tab getTab();  }