@Test public void testGetDefaultDescription() throws Exception { Mockito.when(experiment.getLabel()).thenReturn(label); Mockito.when(label.toString()).thenReturn("UnitTestExperiment"); ExperimentCreateEvent systemEvent = new ExperimentCreateEvent(experiment); Assert.assertEquals(EventLog.SYSTEM_USER.getUsername() + " created experiment UnitTestExperiment.", systemEvent.getDefaultDescription()); }
@Override public String getDefaultDescription() { return getUser().getUsername() + " created experiment " + getExperiment().getLabel() + "."; }
ExperimentCreateEvent extends AbstractEvent implements ExperimentEvent, CreateEvent { @Override public String getDefaultDescription() { return getUser().getUsername() + " created experiment " + getExperiment().getLabel() + "."; } }
ExperimentCreateEvent extends AbstractEvent implements ExperimentEvent, CreateEvent { @Override public String getDefaultDescription() { return getUser().getUsername() + " created experiment " + getExperiment().getLabel() + "."; } ExperimentCreateEvent(ExperimentBase experiment);  ExperimentCreateEvent(UserInfo user, ExperimentBase experiment); }
ExperimentCreateEvent extends AbstractEvent implements ExperimentEvent, CreateEvent { @Override public String getDefaultDescription() { return getUser().getUsername() + " created experiment " + getExperiment().getLabel() + "."; } ExperimentCreateEvent(ExperimentBase experiment);  ExperimentCreateEvent(UserInfo user, ExperimentBase experiment); @Override ExperimentBase getExperiment(); @Override String getDefaultDescription(); @Override Application.Name getApplicationName(); }
ExperimentCreateEvent extends AbstractEvent implements ExperimentEvent, CreateEvent { @Override public String getDefaultDescription() { return getUser().getUsername() + " created experiment " + getExperiment().getLabel() + "."; } ExperimentCreateEvent(ExperimentBase experiment);  ExperimentCreateEvent(UserInfo user, ExperimentBase experiment); @Override ExperimentBase getExperiment(); @Override String getDefaultDescription(); @Override Application.Name getApplicationName();  }