@Test void testContainsContextTokenRequest() { MockHttpServletRequest request = new MockHttpServletRequest(); request.setParameter("molgenis-token", "my_token"); when(tokenSecurityContextRepository.containsContext(request)).thenReturn(true); assertTrue(tokenAwareSecurityContextRepository.containsContext(request)); }
@Override public boolean containsContext(HttpServletRequest request) { return getSecurityContextRepository(request).containsContext(request); }
TokenAwareSecurityContextRepository implements SecurityContextRepository { @Override public boolean containsContext(HttpServletRequest request) { return getSecurityContextRepository(request).containsContext(request); } }
TokenAwareSecurityContextRepository implements SecurityContextRepository { @Override public boolean containsContext(HttpServletRequest request) { return getSecurityContextRepository(request).containsContext(request); } TokenAwareSecurityContextRepository(
      SecurityContextRepository tokenSecurityContextRepository,
      SecurityContextRepository defaultSecurityContextRepository); }
TokenAwareSecurityContextRepository implements SecurityContextRepository { @Override public boolean containsContext(HttpServletRequest request) { return getSecurityContextRepository(request).containsContext(request); } TokenAwareSecurityContextRepository(
      SecurityContextRepository tokenSecurityContextRepository,
      SecurityContextRepository defaultSecurityContextRepository); @Override SecurityContext loadContext(HttpRequestResponseHolder requestResponseHolder); @Override void saveContext(
      SecurityContext context, HttpServletRequest request, HttpServletResponse response); @Override boolean containsContext(HttpServletRequest request); }
TokenAwareSecurityContextRepository implements SecurityContextRepository { @Override public boolean containsContext(HttpServletRequest request) { return getSecurityContextRepository(request).containsContext(request); } TokenAwareSecurityContextRepository(
      SecurityContextRepository tokenSecurityContextRepository,
      SecurityContextRepository defaultSecurityContextRepository); @Override SecurityContext loadContext(HttpRequestResponseHolder requestResponseHolder); @Override void saveContext(
      SecurityContext context, HttpServletRequest request, HttpServletResponse response); @Override boolean containsContext(HttpServletRequest request);  }