@Test public void testGetDefaultDescription() throws Exception { String description = "TestDescription"; SimpleEvent evt = new SimpleEvent(description); Assert.assertTrue("Description does not contain specified description.", evt.getDefaultDescription().contains(description)); AbstractEventTest.testValidSystemEvent(evt); }
@Override public String getDefaultDescription() { return getUser().getUsername() + " invoked this event: " + description; }
SimpleEvent extends AbstractEvent { @Override public String getDefaultDescription() { return getUser().getUsername() + " invoked this event: " + description; } }
SimpleEvent extends AbstractEvent { @Override public String getDefaultDescription() { return getUser().getUsername() + " invoked this event: " + description; } SimpleEvent(String description);  SimpleEvent(UserInfo user, String description); }
SimpleEvent extends AbstractEvent { @Override public String getDefaultDescription() { return getUser().getUsername() + " invoked this event: " + description; } SimpleEvent(String description);  SimpleEvent(UserInfo user, String description); @Override String getDefaultDescription(); }
SimpleEvent extends AbstractEvent { @Override public String getDefaultDescription() { return getUser().getUsername() + " invoked this event: " + description; } SimpleEvent(String description);  SimpleEvent(UserInfo user, String description); @Override String getDefaultDescription();  }