MoodCat / MoodCat.me-Core

Welcome to MoodCat.me, the music platform of the future, available today. Join us in the adventure of finding and enjoying music geared to you!
http://moodcat.me
MIT License
3 stars 2 forks source link

E2e refactor #185

Closed jwgmeligmeyling closed 9 years ago

jwgmeligmeyling commented 9 years ago
TimvdLippe commented 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.

jwgmeligmeyling commented 9 years ago

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:

TimvdLippe commented 9 years ago

Closing since we are discontinueing this project.