summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2015-05-21 16:31:28 -0700
committerSiva Velusamy <vsiva@google.com>2015-05-21 16:31:28 -0700
commit498f93af164bd339b6a94bdb6e236df41d81b936 (patch)
treea1049bf611af4efb591f0ef8fd03532d8ba93b5a
parentdb246e2a0579b9169319d074d2104c4c156337af (diff)
downloadswt-498f93af164bd339b6a94bdb6e236df41d81b936.tar.gz
Fix test that assumed that previews were disabled by default
Change-Id: I7d6578914b2d32b65599921dba40b064ba3770ee
-rwxr-xr-xsdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java b/sdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java
index 8135c08..4928540 100755
--- a/sdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java
+++ b/sdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java
@@ -982,7 +982,10 @@ public class PackagesDiffLogicTest extends TestCase {
public void testToolsPreviewsDisabled() {
// Test: No local tools installed. The remote server has both tools and platforms
// in release and RC versions. However the settings "enable previews" is disabled
- // (which is the default) so the previews are not actually loaded from the server.
+ // so the previews are not actually loaded from the server.
+
+ // Disable previews in the settings
+ u.overrideSetting(ISettingsPage.KEY_ENABLE_PREVIEWS, false);
SdkSource src1 = new SdkRepoSource("http://1.example.com/url1", "repo1");