资源简介


代码片段和文件信息

package com.liyu.fakeweather;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
 * Instrumentation test which will execute on an Android device.
 *
 * @see Testing documentation
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals(“com.liyu.suzhoubus“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-07 08:59  FakeWeather-master\
     文件          86  2018-09-07 08:59  FakeWeather-master\.gitignore
     文件       10257  2018-09-07 08:59  FakeWeather-master\LICENSE
     文件        4321  2018-09-07 08:59  FakeWeather-master\README.md
     目录           0  2018-09-07 08:59  FakeWeather-master\api\
     文件      771155  2018-09-07 08:59  FakeWeather-master\api\heweather_city_list.json
     文件          76  2018-09-07 08:59  FakeWeather-master\api\weatherkey.json
     目录           0  2018-09-07 08:59  FakeWeather-master\app\
     文件           7  2018-09-07 08:59  FakeWeather-master\app\.gitignore
     文件        2298  2018-09-07 08:59  FakeWeather-master\app\build.gradle
     目录           0  2018-09-07 08:59  FakeWeather-master\app\libs\
     文件      170689  2018-09-07 08:59  FakeWeather-master\app\libs\BaiduLBS_Android.jar
     文件         645  2018-09-07 08:59  FakeWeather-master\app\proguard-rules.pro
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\androidTest\
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\androidTest\java\
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\androidTest\java\com\
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\androidTest\java\com\liyu\
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\androidTest\java\com\liyu\fakeweather\
     文件         742  2018-09-07 08:59  FakeWeather-master\app\src\androidTest\java\com\liyu\fakeweather\ExampleInstrumentedTest.java
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\main\
     文件        5057  2018-09-07 08:59  FakeWeather-master\app\src\main\AndroidManifest.xml
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\
     文件       36815  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\PinJump.json
     文件       11349  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\ProgressSuccess.json
     文件         616  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\litepal.xml
     文件     1037044  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\suzhoubus.xml
     目录           0  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\weather_icons\
     文件        4651  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\weather_icons\100.png
     文件        6359  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\weather_icons\101.png
     文件        6359  2018-09-07 08:59  FakeWeather-master\app\src\main\assets\weather_icons\102.png
............此处省略400个文件信息

评论

共有 条评论