package com.example.utils;
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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.utils", appContext.getPackageName());
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
上传本地maven仓库实例项目
共53个文件
xml:21个
bin:6个
png:5个
需积分: 33 13 下载量 186 浏览量
2016-12-06
17:10:50
上传
评论
收藏 284KB RAR 举报
温馨提示
使用Artifactory上传library至本地maven仓库示例项目,原文地址:http://blog.csdn.net/level_26/article/details/53483444
资源推荐
资源详情
资源评论
收起资源包目录
TestUtils.rar (53个子文件)
TestUtils
.gitignore 127B
gradle
wrapper
gradle-wrapper.jar 52KB
gradle-wrapper.properties 233B
local.properties 428B
utils
.gitignore 8B
build.gradle 2KB
proguard-rules.pro 662B
libs
src
test
java
com
example
utils
ExampleUnitTest.java 411B
main
AndroidManifest.xml 278B
java
com
example
utils
TestUtils.java 294B
res
values
styles.xml 29B
colors.xml 67B
strings.xml 27B
mipmap-xxhdpi
ic_launcher.png 8KB
mipmap-xhdpi
ic_launcher.png 5KB
mipmap-hdpi
ic_launcher.png 3KB
drawable
mipmap-mdpi
ic_launcher.png 2KB
mipmap-xxxhdpi
ic_launcher.png 10KB
androidTest
java
com
example
utils
ExampleInstrumentedTest.java 764B
utils.iml 10KB
build.gradle 594B
gradlew.bat 2KB
gradlew 5KB
TestUtils.iml 863B
.gradle
2.14.1
tasks
_utils_compileReleaseJavaWithJavac
localJarClasspathSnapshot
localJarClasspathSnapshot.bin 20KB
localJarClasspathSnapshot.lock 17B
localClassSetAnalysis
localClassSetAnalysis.lock 17B
localClassSetAnalysis.bin 21KB
taskArtifacts
fileSnapshotsToTreeSnapshotsIndex.bin 25KB
cache.properties 31B
fileSnapshots.bin 1.68MB
cache.properties.lock 17B
fileHashes.bin 396KB
taskArtifacts.bin 72KB
gradle.properties 747B
.idea
libraries
support_annotations_25_0_0.xml 495B
support_compat_25_0_0.xml 939B
animated_vector_drawable_25_0_0.xml 649B
support_vector_drawable_25_0_0.xml 644B
appcompat_v7_25_0_0.xml 767B
support_v4_25_0_0.xml 424B
support_media_compat_25_0_0.xml 981B
support_core_utils_25_0_0.xml 967B
support_fragment_25_0_0.xml 953B
support_core_ui_25_0_0.xml 946B
runConfigurations.xml 564B
workspace.xml 180KB
misc.xml 2KB
modules.xml 363B
copyright
profiles_settings.xml 76B
compiler.xml 686B
gradle.xml 628B
settings.gradle 18B
共 53 条
- 1
资源评论
26级办事员
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功