// Path: src/main/java/br/com/six2six/fixturefactory/base/CalendarInterval.java
// public class CalendarInterval implements Serializable {
// 	
// 	private static final long serialVersionUID = 2223542302515335884L;
// 	
// 	private int calendarField;
// 	private int value;
// 
// 	public CalendarInterval(int interval, int calendarField) {
// 		this.calendarField = calendarField;
// 		this.value = interval;
// 	}
// 
// 	public int getCalendarField() {
// 		return this.calendarField;
// 	}
// 
// 	public int getValue() {
// 		return this.value;
// 	}
// }
// 
// Path: src/main/java/br/com/six2six/fixturefactory/base/CalendarSequence.java
// public class CalendarSequence implements Sequence<Calendar> {
// 
// 	private Calendar baseCalendar;
// 	private CalendarInterval interval;
// 	private int multiplier;
// 
// 	public CalendarSequence(Calendar baseCalendar, CalendarInterval interval) {
// 		this.baseCalendar = (Calendar) baseCalendar.clone();
// 		this.interval = interval;
// 	}
// 
// 	@Override
// 	public Calendar nextValue() {
// 		Calendar result = (Calendar) this.baseCalendar.clone();
// 		result.add(this.interval.getCalendarField(), this.interval.getValue() * this.multiplier);
// 		
// 		this.multiplier++;
// 		return result;
// 	}
// }
// 
// Path: src/main/java/br/com/six2six/fixturefactory/function/impl/SequenceFunction.java
// public class SequenceFunction implements AtomicFunction {
// 
// 	private Sequence<?> sequence;
// 	
// 	public SequenceFunction(Sequence<?> sequence) {
// 		this.sequence = sequence;
// 	}
// 
// 	@Override
// 	@SuppressWarnings("unchecked")
// 	public <T> T generateValue() {
// 		return (T) sequence.nextValue();
// 	}
// }
// 
// Path: src/main/java/br/com/six2six/fixturefactory/util/DateTimeUtils.java
// public class DateTimeUtils {
// 
// 	public static Calendar toCalendar(String source, DateFormat format) {
// 		Calendar date = Calendar.getInstance();
// 		try {
// 			date.setTimeInMillis(format.parse(source).getTime());
// 		} catch (ParseException e) {
// 			throw new IllegalArgumentException(e);
// 		}
// 		return date;
// 	}
// 	
// 	public static java.time.ZonedDateTime toZonedDateTime(Calendar value) {
// 		return value.toInstant().atZone(value.getTimeZone().toZoneId());
// 	}
// 	
// }


import static org.junit.Assert.assertEquals;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import org.junit.Test;
import br.com.six2six.fixturefactory.base.CalendarInterval;
import br.com.six2six.fixturefactory.base.CalendarSequence;
import br.com.six2six.fixturefactory.function.impl.SequenceFunction;
import br.com.six2six.fixturefactory.util.DateTimeUtils;
package br.com.six2six.fixturefactory.function;





public class CalendarSequenceFunctionTest {

	@Test
	public void addOneDay() {
// Path: src/main/java/br/com/six2six/fixturefactory/base/CalendarInterval.java
// public class CalendarInterval implements Serializable {
// 	
// 	private static final long serialVersionUID = 2223542302515335884L;
// 	
// 	private int calendarField;
// 	private int value;
// 
// 	public CalendarInterval(int interval, int calendarField) {
// 		this.calendarField = calendarField;
// 		this.value = interval;
// 	}
// 
// 	public int getCalendarField() {
// 		return this.calendarField;
// 	}
// 
// 	public int getValue() {
// 		return this.value;
// 	}
// }
// 
// Path: src/main/java/br/com/six2six/fixturefactory/base/CalendarSequence.java
// public class CalendarSequence implements Sequence<Calendar> {
// 
// 	private Calendar baseCalendar;
// 	private CalendarInterval interval;
// 	private int multiplier;
// 
// 	public CalendarSequence(Calendar baseCalendar, CalendarInterval interval) {
// 		this.baseCalendar = (Calendar) baseCalendar.clone();
// 		this.interval = interval;
// 	}
// 
// 	@Override
// 	public Calendar nextValue() {
// 		Calendar result = (Calendar) this.baseCalendar.clone();
// 		result.add(this.interval.getCalendarField(), this.interval.getValue() * this.multiplier);
// 		
// 		this.multiplier++;
// 		return result;
// 	}
// }
// 
// Path: src/main/java/br/com/six2six/fixturefactory/function/impl/SequenceFunction.java
// public class SequenceFunction implements AtomicFunction {
// 
// 	private Sequence<?> sequence;
// 	
// 	public SequenceFunction(Sequence<?> sequence) {
// 		this.sequence = sequence;
// 	}
// 
// 	@Override
// 	@SuppressWarnings("unchecked")
// 	public <T> T generateValue() {
// 		return (T) sequence.nextValue();
// 	}
// }
// 
// Path: src/main/java/br/com/six2six/fixturefactory/util/DateTimeUtils.java
// public class DateTimeUtils {
// 
// 	public static Calendar toCalendar(String source, DateFormat format) {
// 		Calendar date = Calendar.getInstance();
// 		try {
// 			date.setTimeInMillis(format.parse(source).getTime());
// 		} catch (ParseException e) {
// 			throw new IllegalArgumentException(e);
// 		}
// 		return date;
// 	}
// 	
// 	public static java.time.ZonedDateTime toZonedDateTime(Calendar value) {
// 		return value.toInstant().atZone(value.getTimeZone().toZoneId());
// 	}
// 	
// }


// Path: src/test/java/br/com/six2six/fixturefactory/function/CalendarSequenceFunctionTest.java
import static org.junit.Assert.assertEquals;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import org.junit.Test;
import br.com.six2six.fixturefactory.base.CalendarInterval;
import br.com.six2six.fixturefactory.base.CalendarSequence;
import br.com.six2six.fixturefactory.function.impl.SequenceFunction;
import br.com.six2six.fixturefactory.util.DateTimeUtils;

package br.com.six2six.fixturefactory.function;





public class CalendarSequenceFunctionTest {

	@Test
	public void addOneDay() {
		Calendar baseCalendar = DateTimeUtils.toCalendar("2011-04-09", new SimpleDateFormat("yyyy-MM-dd"));