diff --git a/test/se/vidstige/jadb/test/unit/MockedTestCases.java b/test/se/vidstige/jadb/test/unit/MockedTestCases.java index ed01a9c..944e9e7 100644 --- a/test/se/vidstige/jadb/test/unit/MockedTestCases.java +++ b/test/se/vidstige/jadb/test/unit/MockedTestCases.java @@ -17,7 +17,6 @@ import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.List; -import java.util.Map; public class MockedTestCases { @@ -81,7 +80,7 @@ public class MockedTestCases { @Test public void testExecuteShell() throws Exception { server.add("serial-123"); - server.expectShell("serial-123", "ls -l"); + server.expectShell("serial-123", "ls -l").returns("total 0"); JadbDevice device = connection.getDevices().get(0); device.executeShell("ls", "-l"); } @@ -94,15 +93,6 @@ public class MockedTestCases { device.executeShell("ls", "space file"); } - @Test - public void testGetProps() throws Exception { - server.add("serial-123"); - server.expectShell("serial-123", "getprop").returns("[] = nope\nx\n("); - JadbDevice device = connection.getDevices().get(0); - Map x = device.getprop(); - Assert.assertEquals(0, x.size()); - } - private long parseDate(String date) throws ParseException { DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); return dateFormat.parse(date).getTime();