File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
main/java/com/blankj/utilcode/util
test/java/com/blankj/utilcode/util Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ private static void printDeviceInfo(final String filePath) {
560
560
} catch (PackageManager .NameNotFoundException e ) {
561
561
e .printStackTrace ();
562
562
}
563
- String time = filePath .substring (filePath .length () - 9 , filePath .length () - 4 );
563
+ String time = filePath .substring (filePath .length () - 14 , filePath .length () - 4 );
564
564
final String head = "************* Log Head ****************" +
565
565
"\n Date of Log : " + time +
566
566
"\n Device Manufacturer: " + Build .MANUFACTURER +
Original file line number Diff line number Diff line change 1
1
package com .blankj .utilcode .util ;
2
2
3
+ import org .junit .Test ;
3
4
import org .junit .runner .RunWith ;
4
5
import org .robolectric .RobolectricTestRunner ;
5
6
import org .robolectric .RuntimeEnvironment ;
@@ -21,4 +22,9 @@ public BaseRobolectricTest() {
21
22
Utils .init (RuntimeEnvironment .application );
22
23
}
23
24
25
+ @ Test
26
+ public void test () {
27
+
28
+ }
29
+
24
30
}
Original file line number Diff line number Diff line change 18
18
* desc : test EncodeUtils
19
19
* </pre>
20
20
*/
21
- @ RunWith (RobolectricTestRunner .class )
22
- @ Config (manifest = Config .NONE )
23
- public class EncodeUtilsTest {
21
+ public class EncodeUtilsTest extends BaseRobolectricTest {
24
22
25
23
@ Test
26
24
public void urlEncode_urlDecode () {
You can’t perform that action at this time.
0 commit comments