Skip to content

Commit

Permalink
Rework server tests to avoid using test sources from other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Dec 19, 2023
1 parent 8496924 commit 30d50d0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,13 @@ dependencies {

testImplementation project(':base-test-utils')
testImplementation project(':engine-context')
testImplementation project(':engine-test-utils')
testImplementation TestTools.projectDependency(project, 'engine-context')
testImplementation TestTools.projectDependency(project, 'Util')

testImplementation project(':server-test')
Classpaths.inheritJUnitClassic(project, 'testImplementation')
Classpaths.inheritAssertJ(project)

runtimeOnly project(':Numerics'), project(':extensions-kafka')
Classpaths.inheritAssertJ(project)

Expand Down
3 changes: 2 additions & 1 deletion server/jetty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ dependencies {
implementation project(':grpc-java:grpc-mtls')

testImplementation project(':server-test')
testImplementation TestTools.projectDependency(project, ':server')
Classpaths.inheritJUnitClassic(project, 'testImplementation')
Classpaths.inheritAssertJ(project)

testRuntimeOnly project(':log-to-slf4j')
Classpaths.inheritSlf4j(project, 'slf4j-simple', 'testRuntimeOnly')
Expand Down
3 changes: 2 additions & 1 deletion server/netty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ dependencies {
implementation project(':grpc-java:grpc-mtls')

testImplementation project(':server-test')
testImplementation TestTools.projectDependency(project, ':server')
Classpaths.inheritJUnitClassic(project, 'testImplementation')
Classpaths.inheritAssertJ(project)

testRuntimeOnly project(':log-to-slf4j')
Classpaths.inheritSlf4j(project, 'slf4j-simple', 'testRuntimeOnly')
Expand Down
1 change: 1 addition & 0 deletions server/test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies {
implementation project(':extensions-barrage')
implementation project(':test-configs')
implementation depCommonsLang3
implementation project(':engine-test-utils')

Classpaths.inheritArrow(project, 'flight-core', 'implementation')

Expand Down

0 comments on commit 30d50d0

Please sign in to comment.