Skip to content

Commit 409443d

Browse files
refactor(internal): minor ClientOptionsTest change
1 parent 0265af6 commit 409443d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onebusaway-sdk-kotlin-core/src/test/kotlin/org/onebusaway/core/ClientOptionsTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ import org.onebusaway.core.http.HttpClient
1414
@ExtendWith(MockitoExtension::class)
1515
internal class ClientOptionsTest {
1616

17+
private val httpClient = mock<HttpClient>()
18+
1719
@Test
1820
fun toBuilder_whenOriginalClientOptionsGarbageCollected_doesNotCloseOriginalClient() {
19-
val httpClient = mock<HttpClient>()
2021
var clientOptions =
2122
ClientOptions.builder().httpClient(httpClient).apiKey("My API Key").build()
2223
verify(httpClient, never()).close()

0 commit comments

Comments
 (0)