-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
Milestone
Description
There are 20+ interception scripts in Janssen, which can be written in Jython or Java. The interception script control plane configures scripts for different components: e.g. Auth Server, SCIM, Link. We want to align with TDD of course. But as these scripts are invoked in the middle of a transaction, how would a developer mock the required context?... for example, the sessions or request?
What is the best way to test these scripts? And should each script document the expected context to enable better TDD?