76 Commits

Author SHA1 Message Date
Jari Hämäläinen
206b9c4352 Allow any character except square brackets in property values
PropertyManager failed to get all properties from certain devices
because it allowed only [a-zA-Z0-9_.-] characters in values but
they can contain other characters too. For example in Nexus 9
ro.product.model is "Nexus 9" (has space).

This commit changes allowed characters in property value to contain
anything except square brackets.
2017-01-28 16:53:13 +02:00
Giemsa
251b3ac970 fix NullPointerException in test 2016-12-12 08:49:30 +01:00
Giemsa
d1af94d257 minor changes to some API 2016-12-12 08:49:30 +01:00
Daniel Friederich
f8c9098a7e minor changes to address warnings, etc 2016-11-07 09:42:06 +01:00
Giemsa
86ccd4ab42 add unit test for getState 2016-10-26 21:10:26 +02:00
Samuel Carlsson
70ea021bf0 Merge pull request #39 from SKART1/IMP-38-getprop
Imp 38 getprop
2016-10-03 17:57:17 +02:00
Arthur
db5d9e13bc vidstige/jadb#38 some more changes for PR 2016-10-03 15:41:08 +03:00
Arthur
f4c44d6e3f vidstige/jadb#38 pull-request fixes 2016-10-03 14:04:49 +03:00
Samuel Carlsson
5b66a90c3b Refactor: Adding dummy test for getprop function.
- The FakeServer can now return a string as stdout.
2016-10-03 13:36:00 +03:00
Samuel Carlsson
6e4e4f948e Removing getprop test again 2016-10-01 17:03:42 +02:00
Samuel Carlsson
2073817c95 Refactor: Adding dummy test for getprop function.
- The FakeServer can now return a string as stdout.
2016-10-01 16:36:06 +02:00
Arthur
9c83f0320c vidstige/jadb#38 added unit tests 2016-09-30 18:30:28 +03:00
Samuel Carlsson
58a370928e Refactor: Adding unit test for AdbServerLauncher 2016-09-10 09:13:29 +02:00
Samuel Carlsson
9b8ba8ff52 Refactor: Using functions/fields instead of classes.
Cleaning up PackageManager.
2016-08-01 19:45:49 +02:00
Arthur
c94d080159 vidstige/jadb#26 separate tests for unit and integration 2016-07-29 19:51:52 +03:00
Samuel Carlsson
9c6dfc2220 Merge pull request #24 from SKART1/develop
vidstige/jadb#23 fixes
2016-07-26 12:21:45 +02:00
Arthur
f43f014d82 FT-17-install-options-support removed unused imports 2016-07-26 13:09:43 +03:00
Arthur
983dedf706 vidstige/jadb#17 adding options for pm install command 2016-07-26 13:06:46 +03:00
Arthur
fbcc6f26a6 vidstige/jadb#23 fixes 2016-07-26 12:20:42 +03:00
Samuel Carlsson
be4fa2279c Refactor: Putting test output in out/ directory.
To avoid cluttering the repo root.
2016-07-25 18:51:24 +02:00
Samuel Carlsson
2b71a04b4c Refactor: Cleaning up forceInstall 2016-05-13 21:40:14 +02:00
fashioncj
96f2b1fa05 fix test 2016-05-08 14:50:39 +08:00
Samuel Carlsson
cadf3d4957 Quoting shell arguments with spaces 2016-04-29 15:02:18 +02:00
Samuel Carlsson
07f74cb20a Now possible to launch apps by package name 2016-04-29 10:02:55 +02:00
Samuel Carlsson
a1e55f06d8 Now possible to install packages easily. 2016-04-28 13:51:08 +02:00
Samuel Carlsson
dfb04af94b Adding package manager 2016-04-27 21:56:12 +02:00
Samuel Carlsson
8cee1088a8 The shell command now returns InputStream. 2016-04-27 20:39:14 +02:00
Samuel Carlsson
d8445e8cb2 _Tries_ to start adb server, does not bail out if not possible. 2016-03-28 21:15:27 +02:00
Samuel Carlsson
6c1835cc11 Automatically tries to launch adb server.
Fixes issue #3.
2016-03-28 21:09:00 +02:00
Samuel Carlsson
09a989e144 Automatically skipping real device tests if no connection to adb server. 2016-03-28 16:08:33 +02:00
Samuel Carlsson
c9a0a59ace Filtering out 0x0d, 0x0a sequences from shell commands. Makes screenshotting work again. :-) 2016-03-28 09:41:53 +02:00
Samuel Carlsson
41872e3bb9 Refactor: Consistent whitespace & brace style 2016-03-20 09:13:59 +01:00
Samuel Carlsson
92506f643d Using streams rather than byte arrays. 2016-03-02 21:06:19 +01:00
Gergő Törcsvári
27bed5a88a fix (codeorg): small code cleanup
fix (test): bugfix
2016-03-02 00:10:05 +01:00
Gergő Törcsvári
722ecc4f8b bytearray shell execution added 2016-02-28 10:54:33 +01:00
Gergő Törcsvári
5ab126ddbe reuseable jadbDevices and the shell command returns a string 2016-02-28 03:04:59 +01:00
Samuel Carlsson
31456f7a36 Refactor: Fixing some code issues found by IntelliJ 2014-07-25 19:51:57 +02:00
Samuel Carlsson
77814e09d4 Fixing a problem in the mock where failed expectations did not throw. 2014-07-25 18:41:21 +02:00
Samuel Carlsson
a58587f794 Adding test case for pulling file. 2014-03-26 22:12:29 +01:00
Samuel Carlsson
39ea2d92d6 Adding test for pushing to invalid path. 2014-03-26 21:46:21 +01:00
Samuel Carlsson
e93bdb1658 Asserting no unexpected pushes where sent. 2014-03-26 10:09:31 +01:00
Samuel Carlsson
ee239467d0 Now actually asserting that non expected pushes are not sent. 2014-03-26 10:07:24 +01:00
Samuel Carlsson
89403cb126 Adding callback for file pushed. 2014-03-25 15:52:32 +01:00
Samuel Carlsson
0e94c45791 Adding mocked unit test for pushing file. 2014-03-25 15:46:54 +01:00
Samuel Carlsson
c051da8e7f Fixing a problem where errors during pull where not handled correctly. 2014-03-20 21:31:25 +01:00
Samuel Carlsson
c28902385f Adding unit test for when pushing to invalid path. 2014-03-20 21:25:52 +01:00
Samuel Carlsson
fa74fd88bd Fixing a bug where jadb would hang if no devices where found. 2014-03-20 17:30:21 +01:00
Samuel Carlsson
59cc2e9d1e Refactor: Now expected serial is stated in the test for added clarity. 2014-03-20 17:22:05 +01:00
Samuel Carlsson
1ff8504e3d Refactor: Using FakeAdbServer in unit tests. 2014-03-20 17:04:46 +01:00
Samuel Carlsson
aecd17a446 Refactor: Moving server code into Jadb from the test package. 2014-03-20 17:01:56 +01:00