@Test public void constructor() { String message = "here is my error message"; final long gadgetId = 23; GadgetUndeletionException sut = new GadgetUndeletionException(message, gadgetId); assertEquals("Message was not recorded right", message, sut.getMessage()); assertEquals("GadgetId was not recorded right", gadgetId, sut.getGadgetId()); }
public long getGadgetId() { return gadgetId; }
GadgetUndeletionException extends Exception { public long getGadgetId() { return gadgetId; } }
GadgetUndeletionException extends Exception { public long getGadgetId() { return gadgetId; } GadgetUndeletionException(final String message, final long inGadgetId); }
GadgetUndeletionException extends Exception { public long getGadgetId() { return gadgetId; } GadgetUndeletionException(final String message, final long inGadgetId); long getGadgetId(); }
GadgetUndeletionException extends Exception { public long getGadgetId() { return gadgetId; } GadgetUndeletionException(final String message, final long inGadgetId); long getGadgetId();  }