question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add tests to use OkHTTP

See original GitHub issue

Most 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:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
alzimmermsftcommented, Feb 12, 2020

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?

0reactions
srnagarcommented, Mar 18, 2020

Fixed in #8679

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found