aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/cyanogenmod/explorer/commands/shell/FindCommandTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/com/cyanogenmod/explorer/commands/shell/FindCommandTest.java')
-rw-r--r--tests/src/com/cyanogenmod/explorer/commands/shell/FindCommandTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/src/com/cyanogenmod/explorer/commands/shell/FindCommandTest.java b/tests/src/com/cyanogenmod/explorer/commands/shell/FindCommandTest.java
index 870121d0..664e141d 100644
--- a/tests/src/com/cyanogenmod/explorer/commands/shell/FindCommandTest.java
+++ b/tests/src/com/cyanogenmod/explorer/commands/shell/FindCommandTest.java
@@ -51,7 +51,7 @@ public class FindCommandTest extends AbstractConsoleTest {
* @throws Exception If test failed
*/
@SuppressWarnings("synthetic-access")
- public void testListWithPartialResult() throws Exception {
+ public void testFindWithPartialResult() throws Exception {
this.mNewPartialData = false;
Query query = new Query().setSlot(FIND_TERM_PARTIAL, 0);
final List<FileSystemObject> files = new ArrayList<FileSystemObject>();
@@ -67,9 +67,10 @@ public class FindCommandTest extends AbstractConsoleTest {
public void onException(Exception cause) {
fail(cause.toString());
}
- public void onPartialResult(List<FileSystemObject> results) {
+ @SuppressWarnings("unchecked")
+ public void onPartialResult(Object results) {
FindCommandTest.this.mNewPartialData = true;
- files.addAll(results);
+ files.addAll((List<FileSystemObject>)results);
}
}, getConsole());
synchronized (FindCommandTest.this.mSync) {