diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/DevicesAdapterTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/DevicesAdapterTest.java index 62bbdb4a..31630c0b 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/DevicesAdapterTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/DevicesAdapterTest.java @@ -40,7 +40,7 @@ public class DevicesAdapterTest extends AndroidTestCase { @MediumTest public void testGetViewNoConnections() { - mAdapter.add(Arrays.asList(mDevice)); + mAdapter.addAll(Arrays.asList(mDevice)); View v = mAdapter.getView(0, null, null); assertEquals(mDevice.name, ((TextView) v.findViewById(R.id.name)).getText()); @@ -53,7 +53,7 @@ public class DevicesAdapterTest extends AndroidTestCase { @MediumTest public void testGetViewConnections() { - mAdapter.add(Arrays.asList(mDevice)); + mAdapter.addAll(Arrays.asList(mDevice)); mAdapter.onReceiveConnections( new HashMap() {{ put(mDevice.deviceID, mConnection); }}); View v = mAdapter.getView(0, null, null); diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FoldersAdapterTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FoldersAdapterTest.java index 2ed0366b..bd253de5 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FoldersAdapterTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FoldersAdapterTest.java @@ -40,7 +40,7 @@ public class FoldersAdapterTest extends AndroidTestCase { } public void testGetViewNoModel() { - mAdapter.add(Arrays.asList(mFolder)); + mAdapter.addAll(Arrays.asList(mFolder)); View v = mAdapter.getView(0, null, null); assertEquals(mFolder.id, ((TextView) v.findViewById(R.id.id)).getText()); assertEquals(mFolder.path, ((TextView) v.findViewById(R.id.directory)).getText()); @@ -48,7 +48,7 @@ public class FoldersAdapterTest extends AndroidTestCase { } public void testGetViewModel() { - mAdapter.add(Arrays.asList(mFolder)); + mAdapter.addAll(Arrays.asList(mFolder)); mAdapter.onReceiveModel(mFolder.id, mModel); View v = mAdapter.getView(0, null, null); assertFalse(((TextView) v.findViewById(R.id.state)).getText().toString().equals(""));