FileDocCategorySizeDatePackage
BundleTestListener.javaAPI DocAndroid 1.5 API1829Wed May 06 22:42:02 BST 2009android.test

BundleTestListener

public class BundleTestListener extends Object implements TestListener
A {@link TestListener} 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
mBundle
private boolean
mFailed
Constructors Summary
public BundleTestListener(android.os.Bundle bundle)

        mBundle = bundle;
    
Methods Summary
public voidaddError(junit.framework.Test test, java.lang.Throwable t)

        mBundle.putString(getComboName(test), BaseTestRunner.getFilteredTrace(t));
        mFailed = true;
    
public voidaddFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)

        mBundle.putString(getComboName(test), BaseTestRunner.getFilteredTrace(t));
        mFailed = true;
    
public voidendTest(junit.framework.Test test)

        if (!mFailed) {
            mBundle.putString(getComboName(test), "passed");
        }
    
private java.lang.StringgetComboName(junit.framework.Test test)

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

        mFailed = false;