lazyweb: using mockwebserver in an existing proje...
# squarelibraries
c
lazyweb: using mockwebserver in an existing project (it already had the dep added). writing a new test with it... now going to import and i see two options
com.squareup.okhttp3:mockwebserver3:5.1.0
or
com.squareup.okhttp3:mockwebserver:5.1.0
Are my depenedencies setup incorrectly or should i indeed be seeing both options (if so... which to pick)?
y
Prefer mockwebserver3
It's an improved API
As it's breaking API changes, the existing lives on, deprecated
One of the differences in junit deps were pulled out. So you can use Junit 4, 5 and one day 6
c
Great. Should I be attempting to remove whatever depdnency brought in
com.squareup.okhttp3:mockwebserver:5.1.0
?
y
Eventually or stick with the old version if upgrading is a lot of work
Maybe needs more docs, but changelog was here
In this release MockWebServer has a new Maven coordinate and package name...
c
Nope. not too much work as theres only like 2 tests written with it. lol
thanks for the docs though. i will be able to point that out in my PR