@Test public void testToString() throws Exception { Experiment exp = Mockito.mock(Experiment.class); Mockito.when(exp.getApplicationName()).thenReturn(Application.Name.valueOf("App")); Mockito.when(exp.getLabel()).thenReturn(Experiment.Label.valueOf("Exp1")); Mockito.when(exp.getID()).thenReturn(Experiment.ID.valueOf(new UUID(1, 1))); Calendar time = Calendar.getInstance(); time.set(2011, Calendar.JULY, 1, 15, 0, 13); AuditLogEntry entry = new AuditLogEntry(time, EventLog.SYSTEM_USER, AuditLogAction.BUCKET_CHANGED, exp, Bucket.Label.valueOf("label"), "allocationPercent", String.valueOf(0.2), String.valueOf(0.5)); Assert.assertFalse("toString seems to be the default.", entry.toString().contains("AuditLogEntry@")); }
@Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); }
AuditLogEntry { @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } }
AuditLogEntry { @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } AuditLogEntry(Calendar time, UserInfo user, AuditLogAction action);  AuditLogEntry(Calendar time, UserInfo user, AuditLogAction action,
                         ExperimentBase experiment,
                         Bucket.Label bucketLabel,
                         String changedProperty, String before, String after);  AuditLogEntry(Calendar time, UserInfo user,
                         AuditLogAction action, Application.Name applicationName,
                         Experiment.Label experimentLabel, Experiment.ID experimentId,
                         Bucket.Label bucketLabel,
                         String changedProperty, String before, String after); }
AuditLogEntry { @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } AuditLogEntry(Calendar time, UserInfo user, AuditLogAction action);  AuditLogEntry(Calendar time, UserInfo user, AuditLogAction action,
                         ExperimentBase experiment,
                         Bucket.Label bucketLabel,
                         String changedProperty, String before, String after);  AuditLogEntry(Calendar time, UserInfo user,
                         AuditLogAction action, Application.Name applicationName,
                         Experiment.Label experimentLabel, Experiment.ID experimentId,
                         Bucket.Label bucketLabel,
                         String changedProperty, String before, String after); UserInfo getUser(); Calendar getTime(); String getTimeString(); AuditLogAction getAction(); Application.Name getApplicationName(); Experiment.Label getExperimentLabel(); Experiment.ID getExperimentId(); Bucket.Label getBucketLabel(); String getChangedProperty(); String getBefore(); String getAfter(); @Override String toString(); }
AuditLogEntry { @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } AuditLogEntry(Calendar time, UserInfo user, AuditLogAction action);  AuditLogEntry(Calendar time, UserInfo user, AuditLogAction action,
                         ExperimentBase experiment,
                         Bucket.Label bucketLabel,
                         String changedProperty, String before, String after);  AuditLogEntry(Calendar time, UserInfo user,
                         AuditLogAction action, Application.Name applicationName,
                         Experiment.Label experimentLabel, Experiment.ID experimentId,
                         Bucket.Label bucketLabel,
                         String changedProperty, String before, String after); UserInfo getUser(); Calendar getTime(); String getTimeString(); AuditLogAction getAction(); Application.Name getApplicationName(); Experiment.Label getExperimentLabel(); Experiment.ID getExperimentId(); Bucket.Label getBucketLabel(); String getChangedProperty(); String getBefore(); String getAfter(); @Override String toString();  }