FileDocCategorySizeDatePackage
LineVerifier.javaAPI DocAndroid 5.1 API1746Thu Mar 12 22:22:54 GMT 2015com.android.vcard.tests.testutils

LineVerifier

public class LineVerifier extends Object

Fields Summary
private final android.test.AndroidTestCase
mAndroidTestCase
private final ArrayList
mLineVerifierElemList
private int
mVCardType
private int
index
Constructors Summary
public LineVerifier(android.test.AndroidTestCase androidTestCase, int vcardType)

        mAndroidTestCase = androidTestCase;
        mLineVerifierElemList = new ArrayList<LineVerifierElem>();
        mVCardType = vcardType;
    
Methods Summary
public LineVerifierElemaddLineVerifierElem()

        LineVerifierElem lineVerifier = new LineVerifierElem(mAndroidTestCase, mVCardType);
        mLineVerifierElemList.add(lineVerifier);
        return lineVerifier;
    
public voidverify(java.lang.String vcard)

        if (index >= mLineVerifierElemList.size()) {
            TestCase.fail("Insufficient number of LineVerifier (" + index + ")");
        }

        final LineVerifierElem lineVerifier = mLineVerifierElemList.get(index);
        lineVerifier.verify(vcard);

        index++;