Package org.spw.volunteer.report.xml.programme

Examples of org.spw.volunteer.report.xml.programme.ProgrammeAnalysisExtractor


    public void testExtract() {
        System.out.println("extract");
       
        int year = 1900;
        String[] statusCodes = new String[] {"UG", "PG", "SL", "SPW", "N/A"};
        ProgrammeAnalysisExtractor instance = new ProgrammeAnalysisExtractor(statusCodes);
       
        ProgrammeAnalysis[] result = instance.extract(year);
        assertEquals(1, result.length);
        assertEquals(statusCodes.length, result[0].getNumberByStatus().length);
        assertEquals(1, result[0].getNumberByStatus()[1]); //PG
       
    }
View Full Code Here


        Element date = new Element("date");
        date.addContent(dateFormat.format(editDate));
        root.addContent(date);
       
        // Extract programmes
        ProgrammeAnalysisExtractor paExtractor =
                new ProgrammeAnalysisExtractor(statusCodes);
        ProgrammeAnalysis[] paYear =
                paExtractor.extract(year);
        numberDoubleImpact = paExtractor.getNumberDoubleImpact();
        numberVols = paExtractor.getTotalVols();
        ProgrammeAnalysis[] paPreviousYear =
                paExtractor.extract(year-1);
       
        //status
        Element statuses = new Element("statuses");
       
        for (int ix = 0; ix < statusCodes.length; ix++) {
View Full Code Here

    public void testExtract() {
        System.out.println("extract");
       
        int year = 1900;
        String[] statusCodes = new String[] {"UG", "PG", "SL", "SPW", "N/A"};
        ProgrammeAnalysisExtractor instance = new ProgrammeAnalysisExtractor(statusCodes);
       
        ProgrammeAnalysis[] result = instance.extract(year);
        assertEquals(1, result.length);
        assertEquals(statusCodes.length, result[0].getNumberByStatus().length);
        assertEquals(1, result[0].getNumberByStatus()[1]); //PG
       
    }
View Full Code Here

TOP

Related Classes of org.spw.volunteer.report.xml.programme.ProgrammeAnalysisExtractor

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.