File tree Expand file tree Collapse file tree
main/java/com/blankj/utilcode/util
test/java/com/blankj/utilcode/util Expand file tree Collapse file tree Original file line number Diff line number Diff 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 "\n Date of Log : " + time +
566566 "\n Device Manufacturer: " + Build .MANUFACTURER +
Original file line number Diff line number Diff line change 11package com .blankj .utilcode .util ;
22
3+ import org .junit .Test ;
34import org .junit .runner .RunWith ;
45import org .robolectric .RobolectricTestRunner ;
56import 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}
Original file line number Diff line number Diff line change 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 () {
You can’t perform that action at this time.
0 commit comments