mirror of
https://github.com/revanced/jadb.git
synced 2025-02-11 01:26:47 +01:00
Merge pull request #52 from nuumio/WinTestFix
Don't use System.out as parameter in executeShell test
This commit is contained in:
commit
23d185b015
@ -8,6 +8,7 @@ import org.junit.Test;
|
||||
import org.junit.rules.TemporaryFolder;
|
||||
import se.vidstige.jadb.*;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
@ -98,8 +99,10 @@ public class RealDeviceTestCases {
|
||||
@Test
|
||||
public void testShellExecuteTwice() throws Exception {
|
||||
JadbDevice any = jadb.getAnyDevice();
|
||||
any.executeShell(System.out, "ls /");
|
||||
any.executeShell(System.out, "ls", "-la", "/");
|
||||
ByteArrayOutputStream bout = new ByteArrayOutputStream();
|
||||
any.executeShell(bout, "ls /");
|
||||
any.executeShell(bout, "ls", "-la", "/");
|
||||
System.out.write(bout.toByteArray());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user