blob: 5a4649ed95b6c6a84cd31b8a439d51e4d5582b44 [file] [log] [blame]
package com.androidplot.mock;
import android.os.Looper;
import mockit.Mock;
import mockit.MockClass;
/**
* myLooper and getMainLooper will always be equal. The implication is that any calling
* entity will assume that it is running on the main thread. Simulation of background mode
* is not supported.
*/
@MockClass(realClass = Looper.class)
public class MockLooper {
@Mock
public static Looper myLooper() {
return null;
}
@Mock
public static Looper getMainLooper() {
return null;
}
}