• 大小: 159KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-09
  • 标签:

资源简介

NSD示例代码 这个程序设计了服务端和客户端 虽然其他的很多判断没有完善,但是基本功能是可以使用了的

资源截图

代码片段和文件信息

package com.nsd.lwx.nsddemo;

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.*;

/**
 * Instrumented 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.nsd.lwx.nsddemo“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        127  2018-03-13 15:47  p20180313\NSDDemo\.gitignore

     文件        626  2018-03-13 15:48  p20180313\NSDDemo\.idea\gradle.xml

     文件        533  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\android_arch_core_common_1_0_0_jar.xml

     文件        548  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\android_arch_lifecycle_common_1_0_0_jar.xml

     文件        658  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\android_arch_lifecycle_runtime_1_0_0.xml

     文件        742  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_animated_vector_drawable_26_1_0.xml

     文件        682  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_appcompat_v7_26_1_0.xml

     文件        501  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_constraint_constraint_layout_1_0_2.xml

     文件        384  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml

     文件        608  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_support_annotations_26_1_0_jar.xml

     文件        692  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_support_compat_26_1_0.xml

     文件        697  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_support_core_ui_26_1_0.xml

     文件        712  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_support_core_utils_26_1_0.xml

     文件        702  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_support_fragment_26_1_0.xml

     文件        722  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_support_media_compat_26_1_0.xml

     文件        672  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_support_v4_26_1_0.xml

     文件        737  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_support_vector_drawable_26_1_0.xml

     文件        710  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_test_espresso_espresso_core_3_0_1.xml

     文件        765  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_test_espresso_espresso_idling_resource_3_0_1.xml

     文件        652  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_test_rules_1_0_1.xml

     文件        657  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_android_support_test_runner_1_0_1.xml

     文件        359  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_google_code_findbugs_jsr305_2_0_1_jar.xml

     文件        538  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\com_squareup_javawriter_2_1_1_jar.xml

     文件        528  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\javax_inject_javax_inject_1_jar.xml

     文件        487  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\junit_junit_4_12_jar.xml

     文件        285  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\net_sf_kxml_kxml2_2_3_0_jar.xml

     文件        543  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\org_hamcrest_hamcrest_core_1_3_jar.xml

     文件        578  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\org_hamcrest_hamcrest_integration_1_3_jar.xml

     文件        557  2018-03-13 15:49  p20180313\NSDDemo\.idea\libraries\org_hamcrest_hamcrest_library_1_3_jar.xml

     文件       1611  2018-03-13 15:49  p20180313\NSDDemo\.idea\misc.xml

............此处省略88个文件信息

评论

共有 条评论

相关资源