Skip to content

Commit aa5580f

Browse files
committed
dConnectServerNanoHttpdの単体テストのAndroidX対応。
1 parent 2f07aeb commit aa5580f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dConnectManager/dConnectServerNanoHttpd/nanohttpd/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ apply plugin: 'com.android.library'
33
dependencies {
44
implementation fileTree(include: '*.jar', dir: 'libs')
55
implementation 'org.nanohttpd:nanohttpd-websocket:2.3.0'
6-
androidTestImplementation 'com.android.support.test:testing-support-lib:0.1'
6+
androidTestImplementation "androidx.test.espresso:espresso-core:3.2.0"
7+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
78
androidTestImplementation 'org.hamcrest:hamcrest-library:1.3'
89
androidTestImplementation "org.java-websocket:java-websocket:1.3.3"
910

dConnectManager/dConnectServerNanoHttpd/nanohttpd/src/androidTest/java/org/deviceconnect/server/nanohttpd/DConnectServerNanoHttpdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class DConnectServerNanoHttpdTest {
8787
private static final int PORT = 9999;
8888

8989
private Context getContext() {
90-
return InstrumentationRegistry.getTargetContext();
90+
return InstrumentationRegistry.getInstrumentation().getTargetContext();
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)