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

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


       
        //status
        Element statuses = new Element("statuses");
       
        for (int ix = 0; ix < statusCodes.length; ix++) {
            StatusAnalysis statusAnalysis = cumStatus(statusCodes[ix], paYear, paPreviousYear);
            statuses.addContent( statusAnalysis.toElement());
            totalProgrammeYear[ix] += statusAnalysis.getNumberYear();
            totalProgrammePreviousYear[ix] += statusAnalysis.getNumberPreviousYear();
        }
       
        //add programmes
        Element programmes = new Element("programmes");
        for (ProgrammeAnalysis programmeAnalysis : paYear) {
View Full Code Here


                if (status.equals(statusName)) {
                    nbPreviousYear+=programmeAnalysis.getNumberByStatus()[ix];
                }
            }
        }
        return new StatusAnalysis(status, status, nbYear, nbPreviousYear);
    }
View Full Code Here

     * Test of getTrendYear method, of class org.spw.volunteer.report.xml.StatusAnalysis.
     */
    public void testGetTrendYear() {
        System.out.println("getTrendYear");
       
        StatusAnalysis instance = new StatusAnalysis(
                getName(),"TEST",10, 20);
       
        float expResult = 50.0F;
        float result = instance.getTrendYear();
        assertEquals(expResult, result);
       
    }
View Full Code Here

     * Test of toElement method, of class org.spw.volunteer.report.xml.StatusAnalysis.
     */
    public void testToElement() {
        System.out.println("toElement");
       
        StatusAnalysis instance = new StatusAnalysis(
                getName(),"TEST",10, 20);
       
        Element result = instance.toElement();
        XMLOutputter out = new XMLOutputter();
        String xml= out.outputString(result);
        String expected = "<status>" +
                "<name>" + getName() +"</name>" +
                "<code>TEST</code>" +
View Full Code Here

     * Test of getTrendYear method, of class org.spw.volunteer.report.xml.StatusAnalysis.
     */
    public void testGetTrendYear() {
        System.out.println("getTrendYear");
       
        StatusAnalysis instance = new StatusAnalysis(
                getName(),"TEST",10, 20);
       
        float expResult = 50.0F;
        float result = instance.getTrendYear();
        assertEquals(expResult, result);
       
    }
View Full Code Here

     * Test of toElement method, of class org.spw.volunteer.report.xml.StatusAnalysis.
     */
    public void testToElement() {
        System.out.println("toElement");
       
        StatusAnalysis instance = new StatusAnalysis(
                getName(),"TEST",10, 20);
       
        Element result = instance.toElement();
        XMLOutputter out = new XMLOutputter();
        String xml= out.outputString(result);
        String expected = "<status>" +
                "<name>" + getName() +"</name>" +
                "<code>TEST</code>" +
View Full Code Here

TOP

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

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.