xaya / libxayagame

MIT License
21 stars 20 forks source link

Include HTTP server/client in the mock Xaya servers #82

Closed domob1812 closed 5 years ago

domob1812 commented 5 years ago

We have ready-made classes for mocked RPC servers in unit tests (e.g. MockXayaServer), but using them still requires setting up the JSON-RPC HttpServer and HttpClient specifically in each test. Instead, we should bundle them together, perhaps with some kind of wrapper template class. This should help us remove quite a lot of boilerplate code in test fixtures.