mirror of
https://github.com/revanced/jadb.git
synced 2024-10-19 03:49:37 +02:00
Modify testExecuteShellQuotesSpace to test other whitespace characters
This commit is contained in:
parent
b4ccd454a0
commit
99555a53f0
@ -104,11 +104,17 @@ public class MockedTestCases {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testExecuteShellQuotesSpace() throws Exception {
|
||||
public void testExecuteShellQuotesWhitespace() throws Exception {
|
||||
server.add("serial-123");
|
||||
server.expectShell("serial-123", "ls 'space file'").returns("space file");
|
||||
server.expectShell("serial-123", "echo 'tab\tstring'").returns("tab\tstring");
|
||||
server.expectShell("serial-123", "echo 'newline1\nstring'").returns("newline1\nstring");
|
||||
server.expectShell("serial-123", "echo 'newline2\r\nstring'").returns("newline2\r\nstring");
|
||||
JadbDevice device = connection.getDevices().get(0);
|
||||
device.executeShell("ls", "space file");
|
||||
device.executeShell("echo", "tab\tstring");
|
||||
device.executeShell("echo", "newline1\nstring");
|
||||
device.executeShell("echo", "newline2\r\nstring");
|
||||
}
|
||||
|
||||
private long parseDate(String date) throws ParseException {
|
||||
|
Loading…
Reference in New Issue
Block a user