资源简介

Retrofit2-Rxjava2联网的封装 示例源码

资源截图

代码片段和文件信息

package com.necer.example;

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.necer.example“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\
     文件         118  2017-06-30 06:25  Retrofit2-Rxjava2-master\.gitignore
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\
     文件         686  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\compiler.xml
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\copyright\
     文件          74  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\copyright\profiles_settings.xml
     文件         159  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\encodings.xml
     文件         679  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\gradle.xml
     文件        2644  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\misc.xml
     文件         484  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\modules.xml
     文件         564  2017-06-30 06:25  Retrofit2-Rxjava2-master\.idea\runConfigurations.xml
     文件        1061  2017-06-30 06:25  Retrofit2-Rxjava2-master\README.md
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\
     文件           7  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\.gitignore
     文件         973  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\build.gradle
     文件         916  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\proguard-rules.pro
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\androidTest\
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\androidTest\java\
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\androidTest\java\com\
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\androidTest\java\com\necer\
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\androidTest\java\com\necer\example\
     文件         738  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\androidTest\java\com\necer\example\ExampleInstrumentedTest.java
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\main\
     文件         760  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\main\AndroidManifest.xml
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\main\java\
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\main\java\com\
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\main\java\com\necer\
     目录           0  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\main\java\com\necer\example\
     文件         793  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\main\java\com\necer\example\baseActivity.java
     文件        1361  2017-06-30 06:25  Retrofit2-Rxjava2-master\app\src\main\java\com\necer\example\MVPActivity.java
............此处省略78个文件信息

评论

共有 条评论