Examples of GregorianEraCalc


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

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

    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

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

    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

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

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

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

    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

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

    }
  }

  @Override
  protected EraCalc getEraCalc() {
    return new GregorianEraCalc(1583, 2999);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.