Package org.timepedia.chronoscope.client.util.date

Examples of org.timepedia.chronoscope.client.util.date.GregorianEraCalc


* @author chad takahashi
*/
public class GregorianEraCalcTest extends EraCalcTest {
 
  public void testCalcYearTimestamp() {
    GregorianEraCalc eraCalc = (GregorianEraCalc)getEraCalc();
    testCalcYearTimestamp(eraCalc, eraCalc.getMinYear(), eraCalc.getMaxYear());
  }
View Full Code Here


    GregorianEraCalc eraCalc = (GregorianEraCalc)getEraCalc();
    testCalcYearTimestamp(eraCalc, eraCalc.getMinYear(), eraCalc.getMaxYear());
  }
 
  public void testAssignYearField() {
    GregorianEraCalc eraCalc = (GregorianEraCalc)getEraCalc();
    testAssignYearField(eraCalc, eraCalc.getMinYear(), eraCalc.getMaxYear());
  }
View Full Code Here

    GregorianEraCalc eraCalc = (GregorianEraCalc)getEraCalc();
    testAssignYearField(eraCalc, eraCalc.getMinYear(), eraCalc.getMaxYear());
  }
 
  public void testIsLeapYear() {
    GregorianEraCalc eraCalc = (GregorianEraCalc)getEraCalc();
   
    for (int y = eraCalc.getMinYear(); y <= eraCalc.getMaxYear(); y++) {
      boolean expected = isLeapYear(y);
      assertEquals(expected, eraCalc.isLeapYear(y));
    }
  }
View Full Code Here

      assertEquals(expected, eraCalc.isLeapYear(y));
    }
  }
 
  public void testCalcDayOfWeek() {
    GregorianEraCalc eraCalc = (GregorianEraCalc)getEraCalc();
    super.testCalcDayOfWeek(eraCalc, eraCalc.getMinYear(), eraCalc.getMaxYear());
  }
View Full Code Here

    GregorianEraCalc eraCalc = (GregorianEraCalc)getEraCalc();
    super.testCalcDayOfWeek(eraCalc, eraCalc.getMinYear(), eraCalc.getMaxYear());
  }

  public void testCalcWeekOfYear() {
    GregorianEraCalc eraCalc = (GregorianEraCalc)getEraCalc();
    super.testCalcWeekOfYear(eraCalc);
  }
View Full Code Here

    }
  }

  @Override
  protected EraCalc getEraCalc() {
    return new GregorianEraCalc(1583, 2999);
  }
View Full Code Here

TOP

Related Classes of org.timepedia.chronoscope.client.util.date.GregorianEraCalc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.