FileDocCategorySizeDatePackage
TestHelper.javaAPI DocAndroid 1.5 API1176Wed May 06 22:41:10 BST 2009com.android.mkstubs.sourcer

TestHelper

public abstract class TestHelper extends Object

Fields Summary
Constructors Summary
Methods Summary
public voidassertSourceEquals(java.lang.String expected, java.lang.String actual)
Test source equality after normalizing all whitespace.

        String en = expected.replaceAll("[\\s]+", " ").trim();
        String an = actual.replaceAll(  "[\\s]+", " ").trim();
        
        Assert.assertEquals(
                String.format("Source comparison failure: expected:<%s> but was:<%s>", expected, actual),
                en, an);