FileDocCategorySizeDatePackage
BundlePrinter.javaAPI DocAndroid 1.5 API1610Wed May 06 22:42:02 BST 2009android.test

BundlePrinter

public class BundlePrinter extends ResultPrinter
Subclass of ResultPrinter that adds test case results to a bundle. {@hide} - This class is deprecated, and will be going away. Please don't use it.

Fields Summary
private android.os.Bundle
mResults
private boolean
mFailure
private boolean
mError
Constructors Summary
public BundlePrinter(PrintStream writer, android.os.Bundle result)

        super(writer);
        mResults = result;
    
Methods Summary
public voidaddError(junit.framework.Test test, java.lang.Throwable t)

        mResults.putString(getComboName(test), BaseTestRunner.getFilteredTrace(t));
        mFailure = true;
        super.addError(test, t);
    
public voidaddFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)

        mResults.putString(getComboName(test), BaseTestRunner.getFilteredTrace(t));
        mError = true;
        super.addFailure(test, t);
    
public voidendTest(junit.framework.Test test)

        if (!mFailure && !mError) {
            mResults.putString(getComboName(test), "passed");
        }
        super.endTest(test);
    
private java.lang.StringgetComboName(junit.framework.Test test)

        return test.getClass().getName() + ":" + ((TestCase) test).getName();
    
public voidstartTest(junit.framework.Test test)

        mFailure = false;
        mError = false;
        super.startTest(test);