We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ClientOptionsTest
1 parent f16754f commit 459de5cCopy full SHA for 459de5c
1 file changed
finch-java-core/src/test/kotlin/com/tryfinch/api/core/ClientOptionsTest.kt
@@ -14,9 +14,10 @@ import org.mockito.kotlin.verify
14
@ExtendWith(MockitoExtension::class)
15
internal class ClientOptionsTest {
16
17
+ private val httpClient = mock<HttpClient>()
18
+
19
@Test
20
fun toBuilder_whenOriginalClientOptionsGarbageCollected_doesNotCloseOriginalClient() {
- val httpClient = mock<HttpClient>()
21
var clientOptions =
22
ClientOptions.builder().httpClient(httpClient).accessToken("My Access Token").build()
23
verify(httpClient, never()).close()
0 commit comments