I figured out a way to unit test them with MockWebServer and it's actually 
pretty clean!

As for taking serverApi, I think I'll be leaving it as it is. The number one 
reason is consistency with all of the other *Predicates classes in all of the 
other modules. Developers should have as consistent experience as possible 
across all of the OpenStack modules. I'm also not crazy about forcing an object 
creation on them. And if they were creating servers like in your example, it 
would probably be done in a loop so there would be the repetition.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/355#issuecomment-41635909

Reply via email to