Index: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenConfigurationImplOSGiTest.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenConfigurationImplOSGiTest.java (revision 1814577) +++ oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/token/TokenConfigurationImplOSGiTest.java (revision ) @@ -51,7 +51,8 @@ context.registerInjectActivateService(tokenConfiguration, ImmutableMap.of( TokenProvider.PARAM_TOKEN_EXPIRATION, 25, - TokenProvider.PARAM_TOKEN_LENGTH, 4)); + TokenProvider.PARAM_TOKEN_LENGTH, 4, + TokenProviderImpl.PARAM_TOKEN_CLEANUP_THRESHOLD, 100)); sc = new SimpleCredentials(getTestUser().getID(), new char[0]); sc.setAttribute(TokenConstants.TOKEN_ATTRIBUTE, ""); @@ -62,6 +63,7 @@ ConfigurationParameters params = tokenConfiguration.getParameters(); assertEquals(25, params.getConfigValue(TokenProvider.PARAM_TOKEN_EXPIRATION, TokenProviderImpl.DEFAULT_TOKEN_EXPIRATION).longValue()); assertEquals(4, params.getConfigValue(TokenProvider.PARAM_TOKEN_LENGTH, TokenProviderImpl.DEFAULT_KEY_SIZE).intValue()); + assertEquals(100, params.getConfigValue(TokenProviderImpl.PARAM_TOKEN_CLEANUP_THRESHOLD, TokenProviderImpl.NO_TOKEN_CLEANUP).longValue()); } @Test \ No newline at end of file