0 Replies Latest reply on May 22, 2008 9:05 PM by so38

    Mocking out Authenticator


      I am trying to mock out the authenticate method which is called by identity.login .  Mocking it out works fine using the Install annotation with a precedence of Install.Mock.

      However,  I would like to test the real authenticate method in a unittest.  I tried doing this numerous ways but I keep getting the following error

      value of context variable is not an instance of the component bound to the context variable: authenticator

      Is there any way to unmock an object for a specific unittest?