Package org.jquantlib.time

Examples of org.jquantlib.time.Calendar


  public void testSlovakiaYear2005() {
        final int year = 2005;
        QL.info("Testing Solvakia's holiday list for the year " + year + "...");

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

    //expectedHol.add(new Date(1,JANUARY,year));
    //expectedHol.add(new Date(2,JANUARY,year));
//    expectedHol.add(new Date(3,JANUARY,year));
View Full Code Here


    final int year = 2006;
        QL.info("Testing Solvakia's holiday list for the year " + year + "...");

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

    //expectedHol.add(new Date(1,JANUARY,year));
//    expectedHol.add(new Date(2,JANUARY,year));
//    expectedHol.add(new Date(3,JANUARY,year));
View Full Code Here

    final int year = 2007;
        QL.info("Testing Solvakia's holiday list for the year " + year + "...");

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

      expectedHol.add(new Date(1,January,year));
//      expectedHol.add(new Date(2,JANUARY,year));
//      expectedHol.add(new Date(3,JANUARY,year));
View Full Code Here

    final int year = 2008;
        QL.info("Testing Solvakia's holiday list for the year " + year + "...");

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

      expectedHol.add(new Date(1,January,year));
//      expectedHol.add(new Date(2,JANUARY,year));
//      expectedHol.add(new Date(3,JANUARY,year));
View Full Code Here

    final int year = 2009;
        QL.info("Testing Solvakia's holiday list for the year " + year + "...");

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

      expectedHol.add(new Date(1,January,year));
//      expectedHol.add(new Date(2,JANUARY,year));
      //expectedHol.add(new Date(3,JANUARY,year));
View Full Code Here

    final int year = 2010;
        QL.info("Testing Solvakia's holiday list for the year " + year + "...");

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

      expectedHol.add(new Date(1,January,year));
      //expectedHol.add(new Date(2,JANUARY,year));
      //expectedHol.add(new Date(3,JANUARY,year));
View Full Code Here

    final int year = 2011;
        QL.info("Testing Solvakia's holiday list for the year " + year + "...");

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

    //expectedHol.add(new Date(1,JANUARY,year));
    //expectedHol.add(new Date(2,JANUARY,year));
//    expectedHol.add(new Date(3,JANUARY,year));
View Full Code Here

    final int year = 2012;
        QL.info("Testing Solvakia's holiday list for the year " + year + "...");

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

    //expectedHol.add(new Date(1,JANUARY,year));
//    expectedHol.add(new Date(2,JANUARY,year));
//    expectedHol.add(new Date(3,JANUARY,year));
View Full Code Here

        expectedHol.add(new Date(24, December, year));
         // Special closings for 2004 - Reagan's death and day after thanksgiving
        expectedHol.add(new Date(11, June, year));

        // Call the Holiday Check
        final Calendar nyse = new UnitedStates(UnitedStates.Market.NYSE);
        final CalendarUtil cbt = new CalendarUtil();
        cbt.checkHolidayList(expectedHol, nyse, year);
    }
View Full Code Here

        // Christmas, December 25th (moved to Monday if Sunday or Friday if Saturday)
        //expectedHol.add(new Date(25,DECEMBER,year));
        expectedHol.add(new Date(26, December, year));

        // Call the Holiday Check
        final Calendar nyse = new UnitedStates(UnitedStates.Market.NYSE);
        final CalendarUtil cbt = new CalendarUtil();
        cbt.checkHolidayList(expectedHol, nyse, year);
    }
View Full Code Here

TOP

Related Classes of org.jquantlib.time.Calendar

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.