diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-07-31 10:59:52 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-07-31 11:03:54 -0700 |
commit | 1d7f45d8f8fafc46f23963e3b43c95a2c2120079 (patch) | |
tree | 5e8185beb7b7678528ab486caa94868aa1e8e489 /tests/src/com/android/launcher3/model | |
parent | f880ecca32b10299e3b657a446ce882e004118be (diff) | |
download | android_packages_apps_Trebuchet-1d7f45d8f8fafc46f23963e3b43c95a2c2120079.tar.gz android_packages_apps_Trebuchet-1d7f45d8f8fafc46f23963e3b43c95a2c2120079.tar.bz2 android_packages_apps_Trebuchet-1d7f45d8f8fafc46f23963e3b43c95a2c2120079.zip |
Fixing various tests
> Migrating UI tests to AndroidJUnit4 for better support
> Removing obsolete RotationPreference test
> Fixing broken FileLogTest and AndroidJUnit4
> Removing InvariantDeviceProfileTest as it does not work well with
resource overlays
Change-Id: I0abb1df6765d76d86c1c6c84e8ac35eb9a6bcdaa
Diffstat (limited to 'tests/src/com/android/launcher3/model')
-rw-r--r-- | tests/src/com/android/launcher3/model/AddWorkspaceItemsTaskTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/launcher3/model/AddWorkspaceItemsTaskTest.java b/tests/src/com/android/launcher3/model/AddWorkspaceItemsTaskTest.java index 4c80902f0..ae15f086f 100644 --- a/tests/src/com/android/launcher3/model/AddWorkspaceItemsTaskTest.java +++ b/tests/src/com/android/launcher3/model/AddWorkspaceItemsTaskTest.java @@ -20,9 +20,9 @@ import com.android.launcher3.util.Provider; import org.mockito.ArgumentCaptor; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; +import static org.mockito.Matchers.isNull; import static org.mockito.Mockito.any; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; @@ -131,7 +131,7 @@ public class AddWorkspaceItemsTaskTest extends BaseModelUpdateTaskTestCase { // only info2 should be added because info was already added to the workspace // in setupWorkspaceWithHoles() verify(callbacks).bindAppsAdded(any(ArrayList.class), notAnimated.capture(), - animated.capture(), any(ArrayList.class)); + animated.capture(), isNull(ArrayList.class)); assertTrue(notAnimated.getValue().isEmpty()); assertEquals(1, animated.getValue().size()); |