summaryrefslogtreecommitdiffstats
path: root/updater_sample/tests/src/com/example/android/systemupdatersample/util/UpdateConfigsTest.java
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-05-04 11:34:33 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-05-04 11:34:33 +0200
commit0b72b7dc67de38d7b6aabb1b9d709564b366d5af (patch)
treeed48a00a97ba96e5388d1b3420ac425b81b35217 /updater_sample/tests/src/com/example/android/systemupdatersample/util/UpdateConfigsTest.java
parentSnap for 4754751 from 7ffa008463d282902fe96decddb6aa8250bc6161 to qt-release (diff)
parentMerge "Move menu headers/items to std::vector<std::string>." am: fb86bb2a07 am: 0d9ed29541 (diff)
downloadandroid_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.gz
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.bz2
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.lz
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.xz
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.tar.zst
android_bootable_recovery-0b72b7dc67de38d7b6aabb1b9d709564b366d5af.zip
Diffstat (limited to 'updater_sample/tests/src/com/example/android/systemupdatersample/util/UpdateConfigsTest.java')
-rw-r--r--updater_sample/tests/src/com/example/android/systemupdatersample/util/UpdateConfigsTest.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/updater_sample/tests/src/com/example/android/systemupdatersample/util/UpdateConfigsTest.java b/updater_sample/tests/src/com/example/android/systemupdatersample/util/UpdateConfigsTest.java
index 4aa8c6453..4ccae9380 100644
--- a/updater_sample/tests/src/com/example/android/systemupdatersample/util/UpdateConfigsTest.java
+++ b/updater_sample/tests/src/com/example/android/systemupdatersample/util/UpdateConfigsTest.java
@@ -18,14 +18,11 @@ package com.example.android.systemupdatersample.util;
import static org.junit.Assert.assertArrayEquals;
-import android.content.Context;
-import android.support.test.InstrumentationRegistry;
import android.support.test.filters.SmallTest;
import android.support.test.runner.AndroidJUnit4;
import com.example.android.systemupdatersample.UpdateConfig;
-import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@@ -41,21 +38,14 @@ import java.util.List;
@SmallTest
public class UpdateConfigsTest {
- private Context mContext;
-
@Rule
public final ExpectedException thrown = ExpectedException.none();
- @Before
- public void setUp() {
- mContext = InstrumentationRegistry.getTargetContext();
- }
-
@Test
public void configsToNames_extractsNames() {
List<UpdateConfig> configs = Arrays.asList(
- new UpdateConfig("blah", "http://", UpdateConfig.TYPE_NON_STREAMING),
- new UpdateConfig("blah 2", "http://", UpdateConfig.TYPE_STREAMING)
+ new UpdateConfig("blah", "http://", UpdateConfig.AB_INSTALL_TYPE_NON_STREAMING),
+ new UpdateConfig("blah 2", "http://", UpdateConfig.AB_INSTALL_TYPE_STREAMING)
);
String[] names = UpdateConfigs.configsToNames(configs);
assertArrayEquals(new String[] {"blah", "blah 2"}, names);