Package org.archfirst.bfoms.webservice.security

Examples of org.archfirst.bfoms.webservice.security.AuthenticationResponse


    }

    @Test
    public void testSuccessfulAuthentication() {
        registerUsers();
        AuthenticationResponse response =
            securityTxnService.authenticateUser("jhorner", "cool");
        Assert.assertEquals(response.isSuccess(), true);
        Assert.assertEquals(response.getUser().getUsername(), "jhorner");
        Assert.assertEquals(response.getUser().getFirstName(), "John");
    }
View Full Code Here


    }
   
    @Test
    public void testIncorrectUsername() {
        registerUsers();
        AuthenticationResponse response =
            securityTxnService.authenticateUser("jhorn", "cool");
        Assert.assertEquals(response.isSuccess(), false);
    }
View Full Code Here

    }
   
    @Test
    public void testIncorrectPassword() {
        registerUsers();
        AuthenticationResponse response =
            securityTxnService.authenticateUser("jhorner", "bool");
        Assert.assertEquals(response.isSuccess(), false);
    }
View Full Code Here

TOP

Related Classes of org.archfirst.bfoms.webservice.security.AuthenticationResponse

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.