mirror of
https://github.com/revanced/jadb.git
synced 2025-05-11 11:54:28 +02:00
Removing getprop test again
This commit is contained in:
parent
24348f806d
commit
6e4e4f948e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user