Examples of ProgrammeAnalysis


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

     * Test of getTotal method, of class org.spw.volunteer.report.xml.ProgrammeAnalysis.
     */
    public void testGetTotal() {
        System.out.println("getTotal");
       
        ProgrammeAnalysis instance = new ProgrammeAnalysis(               "test",
                "TST",
                new int[] {1, 2, 3, 4},
                new String[] {"A", "B", "C", "D"},
                20);
        int expResult = 10;
        int result = instance.getTotal();
        assertEquals(expResult, result);
    }
View Full Code Here

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

     * Test of getPercentageGained method, of class org.spw.volunteer.report.xml.ProgrammeAnalysis.
     */
    public void testGetPercentageGained() {
        System.out.println("getPercentageGained");
       
        ProgrammeAnalysis instance = new ProgrammeAnalysis(               "test",
                "TST",
                new int[] {1, 2, 3, 4},
                new String[] {"A", "B", "C", "D"},
                20);
       
        float expResult = 50.0F;
        float result = instance.getPercentageGained();
        assertEquals(expResult, result);
    }
View Full Code Here

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

     * Test of toElement method, of class org.spw.volunteer.report.xml.ProgrammeAnalysis.
     */
    public void testToElement() {
        System.out.println("toElement");
       
        ProgrammeAnalysis instance = new ProgrammeAnalysis(
                "test",
                "TST",
                new int[] {1, 2},
                new String[] {"A", "B"},
                2);
       
        Element result = instance.toElement();
        XMLOutputter out = new XMLOutputter();
        String xml= out.outputString(result);
        System.out.println(xml);
        String expResult =
                "<programme>" +
View Full Code Here

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

     * Test of getTotal method, of class org.spw.volunteer.report.xml.ProgrammeAnalysis.
     */
    public void testGetTotal() {
        System.out.println("getTotal");
       
        ProgrammeAnalysis instance = new ProgrammeAnalysis(               "test",
                "TST",
                new int[] {1, 2, 3, 4},
                new String[] {"A", "B", "C", "D"},
                20);
        int expResult = 10;
        int result = instance.getTotal();
        assertEquals(expResult, result);
    }
View Full Code Here

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

     * Test of getPercentageGained method, of class org.spw.volunteer.report.xml.ProgrammeAnalysis.
     */
    public void testGetPercentageGained() {
        System.out.println("getPercentageGained");
       
        ProgrammeAnalysis instance = new ProgrammeAnalysis(               "test",
                "TST",
                new int[] {1, 2, 3, 4},
                new String[] {"A", "B", "C", "D"},
                20);
       
        float expResult = 50.0F;
        float result = instance.getPercentageGained();
        assertEquals(expResult, result);
    }
View Full Code Here

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

     * Test of toElement method, of class org.spw.volunteer.report.xml.ProgrammeAnalysis.
     */
    public void testToElement() {
        System.out.println("toElement");
       
        ProgrammeAnalysis instance = new ProgrammeAnalysis(
                "test",
                "TST",
                new int[] {1, 2},
                new String[] {"A", "B"},
                2);
       
        Element result = instance.toElement();
        XMLOutputter out = new XMLOutputter();
        String xml= out.outputString(result);
        System.out.println(xml);
        String expResult =
                "<programme>" +
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.