Skip to content

Commit 2f3b4d6

Browse files
committed
add: format
1 parent 8e5e114 commit 2f3b4d6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/test/kotlin/no/nav/security/mock/oauth2/introspect/IntrospectTest.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@ internal class IntrospectTest {
8282
private inline fun <reified T> OAuth2HttpResponse.parse(): T = jacksonObjectMapper().readValue(checkNotNull(body))
8383

8484
private fun request(url: String, bearerToken: String?, auth: String = "Basic user=password"): OAuth2HttpRequest {
85-
return OAuth2HttpRequest(Headers.headersOf(
86-
"Authorization", auth,
87-
"Accept", "application/json",
88-
"Content-Type", "application/x-www-form-urlencoded"
89-
),
85+
return OAuth2HttpRequest(
86+
Headers.headersOf(
87+
"Authorization", auth,
88+
"Accept", "application/json",
89+
"Content-Type", "application/x-www-form-urlencoded"
90+
),
9091
method = "POST",
9192
url.toHttpUrl(),
9293
body = bearerToken?.let { "token=$it&token_type_hint=access_token" }

0 commit comments

Comments
 (0)