3 Replies Latest reply: Jul 22, 2013 12:18 PM by Clarer-Oracle RSS

    Using ATGDust to test Formhandlers in MultiSite context

    Jagadeesh.P.B

      Is it possible to use ATGDust to test multi-site functionalities of ATG?

      I have overridden ForgotPasswordHandler to set the message subject based on curent site name, which I get using SiteContextManager.getCurrentSiteContext().getCurrentSite().getItemDisplayName().

      From ATG Dust, I can create a Test requests and response objects and directly call FormHandler.forgotPassword(request,response) but when I do this, SiteContextManager will not be initialized by ATG and it will throw a null pointer exception. During normal working this is probably handled by one of the pipelines.

      From a ATGDust testcase, how can we make sure current site context is available inside nucleus?