Skip to content

Commit

Permalink
mod: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jwtodd committed Nov 2, 2016
1 parent 9c0a307 commit 2e4e006
Showing 1 changed file with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -733,36 +733,6 @@ public void exportAssignment_InvalidEndDate() throws Exception {
experimentsResource.exportAssignments(experiment.getID(), null, null, null, "invalidEnd", null, null);
}

@Test
public void exportAssignments_InvalidTimeZone() throws Exception {
ExperimentsResource experimentsResource = new ExperimentsResource(experiments, eventsExport, assignments,
authorization, buckets, mutex, pages, priorities, favorites, "US/New York", "YYYY-mm-DD",
new HttpHeader("MyApp-???"), paginationHelper);

thrown.expect(TimeZoneFormatException.class);
experimentsResource.exportAssignments(experiment.getID(), null, null, null, null, "noTimezoneString", null);
}

@Test
public void exportAssignment_InvalidStartDate() throws Exception {
ExperimentsResource experimentsResource = new ExperimentsResource(experiments, eventsExport, assignments,
authorization, buckets, mutex, pages, priorities, favorites, "US/New York", "YYYY-mm-DD",
new HttpHeader("MyApp-???"), paginationHelper);

thrown.expect(TimeFormatException.class);
experimentsResource.exportAssignments(experiment.getID(), null, null, "invalidStart", null, null, null);
}

@Test
public void exportAssignment_InvalidEndDate() throws Exception {
ExperimentsResource experimentsResource = new ExperimentsResource(experiments, eventsExport, assignments,
authorization, buckets, mutex, pages, priorities, favorites, "US/New York", "YYYY-mm-DD",
new HttpHeader("MyApp-???"), paginationHelper);

thrown.expect(TimeFormatException.class);
experimentsResource.exportAssignments(experiment.getID(), null, null, null, "invalidEnd", null, null);
}

@Test
public void getPageExperiments() throws Exception {
ExperimentsResource experimentsResource = new ExperimentsResource(experiments, eventsExport, assignments,
Expand Down

0 comments on commit 2e4e006

Please sign in to comment.