Skip to content

Commit

Permalink
Explicitly add KOTLIN_TEST dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Oct 2, 2023
1 parent 6292691 commit 773f558
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ open class HttpProtocolUnitTestRequestGenerator protected constructor(builder: B
override fun renderTestBody(test: HttpRequestTestCase) {
writer.addImport(KotlinDependency.SMITHY_TEST.namespace, "*")
writer.addImport(KotlinDependency.HTTP.namespace, "HttpMethod")
writer.addImport(KotlinDependency.KOTLIN_TEST.namespace, "*")
writer.dependencies.addAll(KotlinDependency.SMITHY_TEST.dependencies)
writer.dependencies.addAll(KotlinDependency.KOTLIN_TEST.dependencies)
renderExpectedBlock(test)
writer.write("")
renderOperationBlock(test)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ open class HttpProtocolUnitTestResponseGenerator protected constructor(builder:
override fun renderTestBody(test: HttpResponseTestCase) {
writer.addImport(KotlinDependency.SMITHY_TEST.namespace, "*")
writer.addImport(KotlinDependency.HTTP.namespace, "HttpStatusCode")
writer.addImport(KotlinDependency.KOTLIN_TEST.namespace, "*")
writer.dependencies.addAll(KotlinDependency.SMITHY_TEST.dependencies)
writer.dependencies.addAll(KotlinDependency.KOTLIN_TEST.dependencies)
renderExpectedBlock(test)
writer.write("")
renderTestBlock(test)
Expand Down

0 comments on commit 773f558

Please sign in to comment.