Package org.jquantlib.time.calendars

Examples of org.jquantlib.time.calendars.HongKong


  @Test public void testHongKongYear2009() {
        final int year = 2009;
        QL.info("Testing Hong Kong's holiday list for the year " + year + "...");

        final Calendar c = new HongKong(HongKong.Market.HKEx);
       
        final List<Date> expectedHol = new ArrayList<Date>();

        expectedHol.add(new Date(1,January,year));    // The first day of JANUARY
//        expectedHol.add(new Date(26,JANUARY,year));   // Lunar New Year's Day
View Full Code Here


  @Test public void testHongKongYear2008() {
        final int year = 2008;
        QL.info("Testing Hong Kong's holiday list for the year " + year + "...");

        final Calendar c = new HongKong(HongKong.Market.HKEx);
       
      final List<Date> expectedHol = new ArrayList<Date>();

    expectedHol.add(new Date(1,January,year));    // The first day of JANUARY
      expectedHol.add(new Date(7,February,year));   // Lunar New Year's Day
View Full Code Here

  @Test public void testHongKongYear2007() {
        final int year = 2007;
        QL.info("Testing Hong Kong's holiday list for the year " + year + "...");

        final Calendar c = new HongKong(HongKong.Market.HKEx);
       
        final List<Date> expectedHol = new ArrayList<Date>();

        expectedHol.add(new Date(1,January,year));    // The first day of JANUARY
        expectedHol.add(new Date(1,May,year));        // Labour Day
View Full Code Here

  @Test public void testHongKongYear2006() {
        final int year = 2006;
        QL.info("Testing Hong Kong's holiday list for the year " + year + "...");

        final Calendar c = new HongKong(HongKong.Market.HKEx);
       
        final List<Date> expectedHol = new ArrayList<Date>();

        expectedHol.add(new Date(1,January,year));    // The first day of JANUARY
        expectedHol.add(new Date(1,May,year));        // Labour Day
View Full Code Here

    @Test public void testHongKongYear2005() {
        final int year = 2005;
        QL.info("Testing Hong Kong's holiday list for the year " + year + "...");

        final Calendar c = new HongKong(HongKong.Market.HKEx);
       
        final List<Date> expectedHol = new ArrayList<Date>();

        expectedHol.add(new Date(1,January,year));    // The first day of JANUARY
        expectedHol.add(new Date(1,May,year));        // Labour Day
View Full Code Here

    @Test public void testHongKongYear2004() {
        final int year = 2004;
        QL.info("Testing Hong Kong's holiday list for the year " + year + "...");

        final Calendar c = new HongKong(HongKong.Market.HKEx);
       
        final List<Date> expectedHol = new ArrayList<Date>();

        expectedHol.add(new Date(1,January,year));    // The first day of JANUARY
        expectedHol.add(new Date(1,May,year));        // Labour Day
View Full Code Here

TOP

Related Classes of org.jquantlib.time.calendars.HongKong

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.