fix NullPointerException in test

This commit is contained in:
Giemsa 2016-12-09 03:11:48 +09:00 committed by Samuel Carlsson
parent d1af94d257
commit 251b3ac970

View File

@ -106,7 +106,7 @@ public class MockedTestCases {
@Test
public void testExecuteShellQuotesSpace() throws Exception {
server.add("serial-123");
server.expectShell("serial-123", "ls 'space file'");
server.expectShell("serial-123", "ls 'space file'").returns("space file");
JadbDevice device = connection.getDevices().get(0);
device.executeShell("ls", "space file");
}