@Test public void testToStringEqualsExperimentName() { String name = "test-experiment"; Alternative test = new Alternative("test"); Experiment experiment = new ExperimentBuilder(mockSixpack) .withName(name) .withAlternatives(test) .build(); assertEquals(name, experiment.toString()); }
@Override public String toString() { return name; }
Experiment { @Override public String toString() { return name; } }
Experiment { @Override public String toString() { return name; } Experiment(Sixpack sixpack, String name, Set<Alternative> alternatives, Alternative forcedChoice, Double trafficFraction); }
Experiment { @Override public String toString() { return name; } Experiment(Sixpack sixpack, String name, Set<Alternative> alternatives, Alternative forcedChoice, Double trafficFraction); ParticipatingExperiment participate(); PrefetchedExperiment prefetch(); boolean hasForcedChoice(); @Override String toString(); Alternative getControlAlternative(); }
Experiment { @Override public String toString() { return name; } Experiment(Sixpack sixpack, String name, Set<Alternative> alternatives, Alternative forcedChoice, Double trafficFraction); ParticipatingExperiment participate(); PrefetchedExperiment prefetch(); boolean hasForcedChoice(); @Override String toString(); Alternative getControlAlternative(); final Sixpack sixpack; final String name; final Set<Alternative> alternatives; final Alternative forcedChoice; final Double trafficFraction; }