java - Testing an internal fluent API -


i have designed fluent interface retrieve list elements.

one call can like:

repo.actives().sortedbycode().values(); 

the main avantage readability of code.

the call values() returns list<ofwhatiexpect>. previous calls (actives(), sortedbycode(), ...) return listresult managing fluent api.

i'm working on how test api call. depending on use case, must sure caller used actives() api example.

any ideas on how manage that?


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -