Package org.jmcdonnell.blackoutrugby.beans

Examples of org.jmcdonnell.blackoutrugby.beans.BlackoutLoginDetails


        if (requestEntity.getStatus().equalsIgnoreCase("failed"))
        {
            throw new BlackoutLoginException(requestEntity.getReason());
        }
       
        BlackoutLoginDetails loginDetails = new BlackoutLoginDetails();
        loginDetails.setStatus(requestEntity.getStatus());
        loginDetails.setKey(requestEntity.getKey());
        loginDetails.setMemberId(requestEntity.getMemberId());
        loginDetails.setTeamId(requestEntity.getTeamId());
       
        return loginDetails;
    }
View Full Code Here


    private final static String INCORRECT_USERNAME = "myusername";
    private final static String INCORRECT_PASSWORD = "mypassword";

    @Test
    public void testCorrectLogin() throws BlackoutException {
        BlackoutLoginDetails login = requestManager.login(CORRECT_USERNAME, CORRECT_PASSWORD);
        assertNotNull(login);
        assertTrue(login.getStatus().equals("Ok"));
    }
View Full Code Here

TOP

Related Classes of org.jmcdonnell.blackoutrugby.beans.BlackoutLoginDetails

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.