MockWebServer and Multiplatform
See original GitHub issueI have am using MockWebServer in jvmTest
but I get this error when I run gradle allTest
:
okHttpName
java.lang.NoSuchFieldError: okHttpName
I even tried to just do a simple test:
class SomeTest {
@Test
fun someTest() {
val mockWebServer = MockWebServer()
assert(true)
}
}
And it fails.
The Test
annotation is from kotlin.test.Test
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to Use MockWebServer to Mock and Test HTTP Calls
Learn how MockWebServer comes into play here. ... You can also use a MockWebServer on multiple platforms, irrespective of the framework or ...
Read more >Testing on Kotlin Multiplatform Mobile and a Strategy to Speed ...
An alternative way for testing Kotlin Multiplatform code would be to use ... (e.g. Ktor MockEngine, MockWebServer, Mocked HttpInterceptor).
Read more >Mocking HTTP responses (experimental) - Apollo GraphQL
MockServer is multiplatform but if you're using Java only, we recommend using OkHttp MockWebServer which will provide idiomatic Java APIs.
Read more >Change Log - OkHttp
Fix: Configure the multiplatform artifact ( com.squareup.okhttp3:okhttp:3. ... New: Drop the tunnelProxy argument in MockWebServer.useHttps() .
Read more >Testing Api layer in Android - Testing Fundamentals
MockWebServer : It provides support for mocking of the server with which we can actually make api calls and get the output. //...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JavierSegoviaCordoba there has been a lot of spam from this account, for now I’d assume the poor chaps account has got hacked, and just ignore it.
@VN-tunt89 can you explain why?