Open booniepepper opened 1 year ago
As a side note, this is a fantastic library. I'm new to the java.net.http.HttpClient
and I was able to figure out how to use this in minutes, compared a few hours spent trying to figure out how to do testing and mocking without it. I saved some notes on that experience here: https://gist.github.com/booniepepper/6fe970e1de28f975887a5e7af8a2cd8b
If there's no plan to maintain this, please let me know. I'd be interested in forking it
cc @rskupnik and @PawelAdamski
Hi @booniepepper , thank you for the kind words! I remember working on this project those 4 years ago while under PGS Soft along with @PawelAdamski , it was a fun challenge at the time. We were only able to work on this for a month or so before being assigned to different projects and then ultimately left the company - so this thing is pretty much abandoned. I don't have the time currently to maintain it myself, but if you happen to fork it then I'll happily follow the progress and maybe help out if I can
Thanks @rskupnik! I'm going to fork the project to here: https://github.com/so-dang-cool/HttpClientMock
I'll hold off publishing for 2 weeks in case anyone has an objection, but hasn't seen this issue yet.
I take it all back, it looks like @PawelAdamski already has a fork, and it predates this project by about 2 years. (Started in 2017, while this was started in 2019)
See: https://github.com/PawelAdamski/HttpClientMock
I'll delete my fork
NVM the other one is for the Apache HTTP client, not for the native Java 11 client
Thanks @booniepepper for nice words about the project. I'm happy to hear that you enjoy using it. We are now in the process of migration all our projects to Xebia account, once we will know all the decision I will migrate the code.
Thanks for the update
I can see that the company has been re-branded as "Xebia" (see: https://www.pgs-soft.com and https://xebia.com)
I recommend rebranding this library before it takes off. Maybe something like:
com.xebia
in thepom.xml
http-client-mock
to follow common conventions of Maven artifact namingcom.pgs-soft:HttpClientMock
that forwards to the new artifactI really think this library was ahead of its time, and I also think it might get popular soon.
Many companies and libraries were not ready to adopt Java 11 or higher when this was first launched, and so they needed to use Java 8 compatible code for http (apache, okhttp, vertx, etc). I think this is going to change soon as more companies and libraries are starting to drop support for Java 8 in their newest releases and services, and are discovering or using the builtin HttpClient