Package web.servlets

Examples of web.servlets.Login


  }
 
 
  @Test  // TODO add test description
  public synchronized final void testGetOutput() throws Exception{
    final Login login=new Login();
    map.put("sessionId", sessionId);
    map.put("email", "hussain@email.com");
    map.put("name","Hussain");
   
    assertEquals(
        "Test if the users record is empty",
        0,
        ENGINE.getUsers().size()
        );
   
    String output = login.processRequest(map, ENGINE).toString();
    assertEquals(
        "Test if login is successful",
        "done",
        JsonFactory.fromJson(output).message
        );
View Full Code Here


 
  @BeforeClass
  @AfterClass  // TODO add test description
  public final static void beforeClass()throws Exception{
    ENGINE.clearRecords();
    servlet = new Login();
  }
View Full Code Here

TOP

Related Classes of web.servlets.Login

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.