Closed jwgmeligmeyling closed 9 years ago
Personally I don't agree that the Builder pattern is more readable than the initial approach. However, I do agree that the current GET and POST magic in EndToEndTest class can be improved. I just don't think this solution makes it more elegant, it simply delegates the 'problem' to every subclass imo.
The SoundCloud mocking seems a good idea though, so maybe make a seperate PR for that?
My 2 cents.
I like builders over parameters because they are more expressive. When you're e2e testing an API, you want to make sure you immediately see:
When creating lots of delegating methods that roughly do the same, you lose a bit of required logic of the HttpClient
, but you sacrifice a few other points:
Closing since we are discontinueing this project.