Search in sources :

Example 1 with RobolectricTest

use of com.ichi2.anki.RobolectricTest in project Anki-Android by ankidroid.

the class ReviewerTest method startReviewer.

public static <T extends Reviewer> T startReviewer(RobolectricTest testClass, Class<T> clazz) {
    T reviewer = startActivityNormallyOpenCollectionWithIntent(testClass, clazz, new Intent());
    waitForAsyncTasksToComplete();
    return reviewer;
}
Also used : RESULT_DEFAULT(com.ichi2.anki.AbstractFlashcardViewer.RESULT_DEFAULT) Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)1 RESULT_DEFAULT (com.ichi2.anki.AbstractFlashcardViewer.RESULT_DEFAULT)1