Package com.porterhead.rest.config

Examples of com.porterhead.rest.config.ApplicationConfig


        };
        validator = Validation.buildDefaultValidatorFactory().getValidator();

        userRepository = mock(UserRepository.class);
        tokenRepository = mock(VerificationTokenRepository.class);
        ApplicationConfig config = mock(ApplicationConfig.class);
        verificationTokenService = new VerificationTokenServiceImpl(userRepository, tokenRepository,
                emailServicesGateway, validator);
        ((VerificationTokenServiceImpl)verificationTokenService).setConfig(config);
        when(config.getHostNameUrl()).thenReturn(new String("http://localhost:8080"));
        when(config.getLostPasswordTokenExpiryTimeInMinutes()).thenReturn(120);
        when(config.getEmailVerificationTokenExpiryTimeInMinutes()).thenReturn(120);
        when(config.getEmailRegistrationTokenExpiryTimeInMinutes()).thenReturn(120);
    }
View Full Code Here

TOP

Related Classes of com.porterhead.rest.config.ApplicationConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.