FileDocCategorySizeDatePackage
MockFunction.javaAPI DocAndroid 1.5 API1649Wed May 06 22:41:06 BST 2009tests.support

MockFunction

public class MockFunction extends Object implements SQLite.Function

Fields Summary
private StringBuffer
acc
public static boolean
getAggValueCalled
public static boolean
functionCalled
public static boolean
stepCalled
public static boolean
lastStepCalled
Constructors Summary
Methods Summary
public voidfunction(SQLite.FunctionContext fc, java.lang.String[] args)

        functionCalled = true;
        if (args.length > 0) {
            fc.set_result(args[0].toLowerCase());
        }
    
public java.lang.StringgetAggValue()

    
       
        getAggValueCalled = true;
        return acc.toString();
    
public voidlast_step(SQLite.FunctionContext fc)

        lastStepCalled = true;
        fc.set_result(acc.toString());
    
public voidstep(SQLite.FunctionContext fc, java.lang.String[] args)

        stepCalled = true;
        for (int i = 0; i < args.length; i++) {
            acc.append(args[i]);
            acc.append(" ");
        }