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

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -