Skip to content

Commit 9837fea

Browse files
committed
Move tests from okhttp-tests/src/test/java to okhttp/src/test/java
The previous module structure was necessary because Maven wouldn't allow mockwebserver to depend on okhttp/src and for okhttp/test to depend on mockwebserver. With Gradle this constraint is lifted and we can fold everything into a single module. I'm in a rush to do this now because it's necessary for Kotlin 'internal' tests to be in the same module.
1 parent b650c4e commit 9837fea

File tree

95 files changed

+8
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+8
-14
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: okhttp-tests/build.gradle

-13
This file was deleted.

Diff for: okhttp/build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ dependencies {
2929
compileOnly deps.jsr305
3030
compileOnly deps.animalSniffer
3131

32+
testImplementation deps.okio
33+
testImplementation project(':okhttp-testing-support')
34+
testImplementation project(':okhttp-tls')
35+
testImplementation project(':okhttp-urlconnection')
36+
testImplementation project(':mockwebserver')
37+
testImplementation project(':okhttp-logging-interceptor')
38+
testImplementation deps.conscrypt
3239
testImplementation deps.junit
3340
testImplementation deps.assertj
41+
testCompileOnly deps.jsr305
3442
}
3543

3644
apply plugin: 'me.champeau.gradle.japicmp'

Diff for: settings.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ include ':okhttp-hpacktests'
66
include ':okhttp-logging-interceptor'
77
include ':okhttp-sse'
88
include ':okhttp-testing-support'
9-
include ':okhttp-tests'
109
include ':okhttp-tls'
1110
include ':okhttp-urlconnection'
1211
include ':samples:crawler'

0 commit comments

Comments
 (0)