Search in sources :

Example 1 with SvUserAuthenticationService

use of com.teachMeSkills.an15.VorobyovSergey.hwSix.Task3.services.SvUserAuthenticationService in project AN15 by IharDubkou.

the class MainTask3 method svAuthenticationServiceTest.

private static void svAuthenticationServiceTest(SvUser user) {
    System.out.println("\nTest AuthenticationService:");
    SvUserAuthenticationService service = new SvUserAuthenticationServiceImpl();
    boolean u1 = service.isUserAuthenticated(user, "Pupkin", "Parol");
    System.out.println("\nВсе хорошо с паролем и логином? - " + u1);
    boolean u2 = service.isUserAuthenticated(user, "User", "Qwerty");
    System.out.println("Все хорошо с паролем и логином? - " + u2);
}
Also used : SvUserAuthenticationServiceImpl(com.teachMeSkills.an15.VorobyovSergey.hwSix.Task3.services.implimentations.SvUserAuthenticationServiceImpl) SvUserAuthenticationService(com.teachMeSkills.an15.VorobyovSergey.hwSix.Task3.services.SvUserAuthenticationService)

Aggregations

SvUserAuthenticationService (com.teachMeSkills.an15.VorobyovSergey.hwSix.Task3.services.SvUserAuthenticationService)1 SvUserAuthenticationServiceImpl (com.teachMeSkills.an15.VorobyovSergey.hwSix.Task3.services.implimentations.SvUserAuthenticationServiceImpl)1