Modified settings tests to use custom test runner
The custom test runner lets us use resources from multiple projects which resolves many ResourceNotFound errors that would come up when people who made changes wrote tests. Test: make RunSettingsRoboTests Bug: 32180625 Change-Id: I71f30eecc1164b117351a74b3ea0533625feae5b
This commit is contained in:
@@ -22,18 +22,16 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.RuntimeEnvironment;
|
||||
import org.robolectric.annotation.Config;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
import static junit.framework.Assert.assertTrue;
|
||||
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
@RunWith(SettingsRobolectricTestRunner.class)
|
||||
@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
|
||||
public class SummaryPreferenceTest {
|
||||
|
||||
|
Reference in New Issue
Block a user