NoServletAuthenticationFilterTest is unstable

XMLWordPrintable

      Acceptance Criteria (Required on creation):

      • The test sometimes fails with
        RepositoryService$$EnhancerByMockitoWithCGLIB$$66a546dc cannot be returned by getIdentityService()
        getIdentityService() should return IdentityService
        ***
        If you're unsure why you're getting above error read on.
        Due to the nature of the syntax above problem might occur because:
        1. This exception *might* occur in wrongly written multi-threaded tests.
           Please refer to Mockito FAQ on limitations of concurrency testing.
        2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to stub spies - 
           - with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method.
        

      Hints (Optional):

            Assignee:
            Thorben Lindhauer
            Reporter:
            Thorben Lindhauer
            Tobias Metzke-Bernstein Tobias Metzke-Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: