Add tests to use OkHTTP
See original GitHub issueMost of our client libraries use azure-core-http-netty
as the Http client by default. So, all our tests run using netty but we should have tests that swap out azure-core-http-netty
with azure-core-http-okhttp
and run the tests so we ensure all changes are tested with both http clients.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Unit Testing OkHttp - tomaytotomato.com
The recommended way of testing your code that uses OkHttp is to utilise their MockWebServer utility. This allows the execution of tests in...
Read more >okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
// Make another request with certificate pinning. It should complete normally. client.setCertificatePinner(certificatePinnerBuilder.build() ...
Read more >OkHttp implement unit test? - java - Stack Overflow
I want to write unit test for the function above. I have tried with MockWebServer and it doesn't work. MockResponse response = new...
Read more >Testing endpoints with OkHttp | EN.601.421 - GitHub Pages
Functional testing with OkHttp# · okhttp3.*; · import org.junit.BeforeClass; · import org.junit.Test; · import java.io.IOException; · import java.sql.*; · import ...
Read more >Testing HTTP applications with a few ok libraries — part 2
In the first part of this series, we have written a type-safe HTTP client in Retrofit and leveraged OkHttp to assert the behaviour...
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 Free
Top 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
Should we extend the test framework to handle running permutations at a test suite level where we could plug in Netty or OkHttp for an entire test run?
Fixed in #8679