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

Examples of org.spw.volunteer.report.xml.programme.ProgrammeAnalysisExtractor.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


       
        // Extract programmes
        ProgrammeAnalysisExtractor paExtractor =
                new ProgrammeAnalysisExtractor(statusCodes);
        ProgrammeAnalysis[] paYear =
                paExtractor.extract(year);
        numberDoubleImpact = paExtractor.getNumberDoubleImpact();
        numberVols = paExtractor.getTotalVols();
        ProgrammeAnalysis[] paPreviousYear =
                paExtractor.extract(year-1);
       
View Full Code Here

        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

       
        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
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.