Made the list method return the files rather than print them on stdout

This commit is contained in:
Samuel Carlsson
2014-03-19 17:19:05 +01:00
parent d456c1d79a
commit 0bc737adab
4 changed files with 36 additions and 8 deletions

View File

@ -7,6 +7,7 @@ import org.junit.Test;
import se.vidstige.jadb.AndroidDevice;
import se.vidstige.jadb.JadbConnection;
import se.vidstige.jadb.RemoteFile;
import se.vidstige.jadb.test.fakes.AdbServer;
public class JadbTestCases {
@ -31,6 +32,10 @@ public class JadbTestCases {
{
JadbConnection jadb = new JadbConnection();
AndroidDevice any = jadb.getAnyDevice();
any.list("/");
List<RemoteFile> files = any.list("/");
for (RemoteFile f : files)
{
System.out.println(f.getName());
}
}
}