Removing getprop test again

This commit is contained in:
Samuel Carlsson 2016-10-01 17:03:42 +02:00
parent 24348f806d
commit 6e4e4f948e

View File

@ -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<String, String> 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();