Professional Documents
Culture Documents
Seq Periods Test
Seq Periods Test
Seq Periods Test
package com.bhagin.pocs.misc;
import java.util.ArrayList;
import java.util.Calendar;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @date 10 Mar, 2011
* @author rohitmp
*/
public class SeqPeriodsTest {
public SeqPeriodsTest() {
}
@BeforeClass
public static void setUpClass() throws Exception {
}
@AfterClass
public static void tearDownClass() throws Exception {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of arePeriodsSequential method, of class SeqPeriods.
*/
@Test
public void testArePeriodsSequentialYesInSameYear() {
System.out.println("testArePeriodsSequentialYesInSameYear");
ArrayList<Period> arlOfPeriods = new ArrayList<Period>();
arlOfPeriods.add(p1);
arlOfPeriods.add(p2);
arlOfPeriods.add(p3);
arlOfPeriods.add(p4);
/**
* Test of arePeriodsSequential method, of class SeqPeriods.
*/
@Test
public void testArePeriodsSequentialLeapYear() {
System.out.println("testArePeriodsSequentialLeapYear");
ArrayList<Period> arlOfPeriods = new ArrayList<Period>();
arlOfPeriods.add(p1);
arlOfPeriods.add(p2);
arlOfPeriods.add(p3);
arlOfPeriods.add(p4);
/**
* Test of arePeriodsSequential method, of class SeqPeriods.
*/
@Test
public void testArePeriodsSequentialOverLapInSameYear() {
System.out.println("testArePeriodsSequentialOverLapInSameYear");
ArrayList<Period> arlOfPeriods = new ArrayList<Period>();
/**
* Test of arePeriodsSequential method, of class SeqPeriods.
*/
@Test
public void testArePeriodsSequentialGapInSameYear() {
System.out.println("testArePeriodsSequentialGapInSameYear");
ArrayList<Period> arlOfPeriods = new ArrayList<Period>();
/**
* Test of arePeriodsSequential method, of class SeqPeriods.
*/
@Test
public void testArePeriodsSequentialYesSpanningYears() {
System.out.println("testArePeriodsSequentialYesSpanningYears");
ArrayList<Period> arlOfPeriods = new ArrayList<Period>();
arlOfPeriods.add(p1);
arlOfPeriods.add(p2);
arlOfPeriods.add(p3);
arlOfPeriods.add(p4);
/**
* Test of arePeriodsSequential method, of class SeqPeriods.
*/
@Test
public void testArePeriodsSequentialOverLapSpanningYears() {
System.out.println("testArePeriodsSequentialOverLapSpanningYears");
ArrayList<Period> arlOfPeriods = new ArrayList<Period>();
/**
* Test of arePeriodsSequential method, of class SeqPeriods.
*/
@Test
public void testArePeriodsSequentialGapSpanningYears() {
System.out.println("testArePeriodsSequentialGapSpanningYears");
ArrayList<Period> arlOfPeriods = new ArrayList<Period>();