public RollUpIntegrationTest() throws Exception {
  setResponseLogLengthLimit(1000);
  dateFormat=new SimpleDateFormat("yyyy-MM-dd");
  Calendar cal=Calendar.getInstance();
  cal.add(Calendar.DATE,-1);
  yesterday=dateFormat.format(cal.getTime());
  yesterday+="T00:00:00+0000";
  cal=Calendar.getInstance();
  cal.add(Calendar.DATE,0);
  today=dateFormat.format(cal.getTime());
  today+="T00:00:00+0000";
  cal=Calendar.getInstance();
  cal.add(Calendar.DATE,1);
  tomorrow=dateFormat.format(cal.getTime());
  tomorrow+="T00:00:00+0000";
  cal=Calendar.getInstance();
  cal.add(Calendar.DATE,4);
  tomorrowPlus3=dateFormat.format(cal.getTime());
  tomorrowPlus3+="T00:00:00+0000";
  experiment=ExperimentFactory.createExperiment();
  experiment.startTime=yesterday;
  experiment.endTime=tomorrowPlus3;
  experiment.samplingPercent=1.0;
  experiment.label="experiment";
  experiment.applicationName=QBO + UUID.randomUUID();
  DefaultNameExclusionStrategy experimentComparisonStrategy=new DefaultNameExclusionStrategy("creationTime","modificationTime","ruleJson");
  experiment.setSerializationStrategy(experimentComparisonStrategy);
}

public RollUpIntegrationTest ( ) throws Exception { setResponseLogLengthLimit ( 1000 ) ; dateFormat = new SimpleDateFormat ( "yyyy-MM-dd" ) ; Calendar cal = Calendar . getInstance ( ) ; cal . add ( Calendar . DATE , - 1 ) ; yesterday = dateFormat . format ( cal . getTime ( ) ) ; yesterday += "T00:00:00+0000" ; cal = Calendar . getInstance ( ) ; cal . add ( Calendar . DATE , 0 ) ; today = dateFormat . format ( cal . getTime ( ) ) ; today += "T00:00:00+0000" ; cal = Calendar . getInstance ( ) ; cal . add ( Calendar . DATE , 1 ) ; tomorrow = dateFormat . format ( cal . getTime ( ) ) ; tomorrow += "T00:00:00+0000" ; cal = Calendar . getInstance ( ) ; cal . add ( Calendar . DATE , 4 ) ; tomorrowPlus3 = dateFormat . format ( cal . getTime ( ) ) ; tomorrowPlus3 += "T00:00:00+0000" ; experiment = ExperimentFactory . createExperiment ( ) ; experiment . startTime = yesterday ; experiment . endTime = tomorrowPlus3 ; experiment . samplingPercent = 1.0 ; experiment . label = "experiment" ; experiment . applicationName = QBO + UUID . randomUUID ( ) ; DefaultNameExclusionStrategy experimentComparisonStrategy = new DefaultNameExclusionStrategy ( "creationTime" , "modificationTime" , "ruleJson" ) ; experiment . setSerializationStrategy ( experimentComparisonStrategy ) ; }
initializes a default experiment .
