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

AccessSourcerTest

public class AccessSourcerTest extends Object

Fields Summary
private StringWriter
mWriter
private AccessSourcer
mSourcer
Constructors Summary
Methods Summary
public voidsetUp()

        mWriter = new StringWriter();
        mSourcer = new AccessSourcer(new Output(mWriter));
    
public voidtearDown()

        mWriter = null;
        mSourcer = null;
    
public voidtestAbstractPublic()

        mSourcer.write(Opcodes.ACC_ABSTRACT | Opcodes.ACC_PUBLIC, AccessSourcer.IS_CLASS);

        String s = mWriter.toString();
        Assert.assertEquals("public abstract", s);
    
public voidtestPrivateFinalStatic()

        mSourcer.write(Opcodes.ACC_PRIVATE | Opcodes.ACC_FINAL | Opcodes.ACC_STATIC,
                AccessSourcer.IS_METHOD);

        String s = mWriter.toString();
        Assert.assertEquals("private static final", s);