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
Post a Comment