mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
684 B
Java
31 lines
684 B
Java
package com.todoroo.andlib.test;
|
|
|
|
import android.test.AndroidTestCase;
|
|
|
|
import com.todoroo.andlib.service.ContextManager;
|
|
import com.todoroo.andlib.service.DependencyInjectionService;
|
|
import com.todoroo.astrid.service.AstridDependencyInjector;
|
|
|
|
/**
|
|
* Base test case for Astrid tests
|
|
*
|
|
* @author Tim Su <tim@todoroo.com>
|
|
*
|
|
*/
|
|
public class TodorooTestCase extends AndroidTestCase {
|
|
|
|
static {
|
|
AstridDependencyInjector.initialize();
|
|
}
|
|
|
|
@Override
|
|
protected void setUp() throws Exception {
|
|
super.setUp();
|
|
|
|
ContextManager.setContext(this.getContext());
|
|
AstridDependencyInjector.flush();
|
|
DependencyInjectionService.getInstance().inject(this);
|
|
}
|
|
|
|
}
|