Skip to content

Commit

Permalink
Boot upgrade wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Feb 22, 2021
1 parent 867c540 commit f8f58f6
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ class EntitiesControllerIntegrationTests extends Specification {
@Autowired
private WebTestClient webClient

def setup() {
/*def setup() {
//DefaultUriBuilderFactory factory = new DefaultUriBuilderFactory()
//factory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.NONE)
// yeah, don't ask... this is just shenanigans
this.webClient = WebTestClient.builder().uriBuilderFactory(factory).build()
this.webClient.webClient.uriBuilderFactory.encodingMode = DefaultUriBuilderFactory.EncodingMode.NONE
}
}*/

def "GET /api/entities returns the proper json"() {
given:
Expand All @@ -65,11 +65,7 @@ class EntitiesControllerIntegrationTests extends Specification {
when:
def result = this.webClient
.get()
.uri {
it.path("/api/entities/http%3A%2F%2Ftest.scaldingspoon.org%2Ftest1")
it.build()
}
//.uri("/api/entities/http%3A%2F%2Ftest.scaldingspoon.org%2Ftest1")
.uri("/api/entities/http%3A%2F%2Ftest.scaldingspoon.org%2Ftest1")
.exchange() // someday, I'd like to know why IntelliJ "cannot resolve symbol 'exchange'"

then:
Expand Down

0 comments on commit f8f58f6

Please sign in to comment.