Skip to content

Commit 22a77c2

Browse files
committed
see 08/05 log
1 parent a28bee5 commit 22a77c2

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ private static void printDeviceInfo(final String filePath) {
560560
} catch (PackageManager.NameNotFoundException e) {
561561
e.printStackTrace();
562562
}
563-
String time = filePath.substring(filePath.length() - 9, filePath.length() - 4);
563+
String time = filePath.substring(filePath.length() - 14, filePath.length() - 4);
564564
final String head = "************* Log Head ****************" +
565565
"\nDate of Log : " + time +
566566
"\nDevice Manufacturer: " + Build.MANUFACTURER +

utilcode/src/test/java/com/blankj/utilcode/util/BaseRobolectricTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.blankj.utilcode.util;
22

3+
import org.junit.Test;
34
import org.junit.runner.RunWith;
45
import org.robolectric.RobolectricTestRunner;
56
import org.robolectric.RuntimeEnvironment;
@@ -21,4 +22,9 @@ public BaseRobolectricTest() {
2122
Utils.init(RuntimeEnvironment.application);
2223
}
2324

25+
@Test
26+
public void test() {
27+
28+
}
29+
2430
}

utilcode/src/test/java/com/blankj/utilcode/util/EncodeUtilsTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
* desc : test EncodeUtils
1919
* </pre>
2020
*/
21-
@RunWith(RobolectricTestRunner.class)
22-
@Config(manifest = Config.NONE)
23-
public class EncodeUtilsTest {
21+
public class EncodeUtilsTest extends BaseRobolectricTest{
2422

2523
@Test
2624
public void urlEncode_urlDecode() {

0 commit comments

Comments
 (0)