protected Hashtable createResultsStatusHash()

in java/src/org/apache/qetest/Reporter.java [1485:1513]


    protected Hashtable createResultsStatusHash()
    {
        Hashtable resHash = new Hashtable();
        if (incpCount[CASES] > 0)
            resHash.put(INCP + "-cases", new Integer(incpCount[CASES]));
        if (incpCount[CHECKS] > 0)
            resHash.put(INCP + "-checks", new Integer(incpCount[CHECKS]));

        if (passCount[CASES] > 0)
            resHash.put(PASS + "-cases", new Integer(passCount[CASES]));
        if (passCount[CHECKS] > 0)
            resHash.put(PASS + "-checks", new Integer(passCount[CHECKS]));

        if (ambgCount[CASES] > 0)
            resHash.put(AMBG + "-cases", new Integer(ambgCount[CASES]));
        if (ambgCount[CHECKS] > 0)
            resHash.put(AMBG + "-checks", new Integer(ambgCount[CHECKS]));

        if (failCount[CASES] > 0)
            resHash.put(FAIL + "-cases", new Integer(failCount[CASES]));
        if (failCount[CHECKS] > 0)
            resHash.put(FAIL + "-checks", new Integer(failCount[CHECKS]));

        if (errrCount[CASES] > 0)
            resHash.put(ERRR + "-cases", new Integer(errrCount[CASES]));
        if (errrCount[CHECKS] > 0)
            resHash.put(ERRR + "-checks", new Integer(errrCount[CHECKS]));
        return resHash;
    }