Package scotlandyard.servlets.users

Examples of scotlandyard.servlets.users.dologout


        );
    assertEquals(Engine.instance().users.size(),2);
    assertEquals(
        "OK",
        JavascriptEval.getJSONproperty(
            new dologout(Engine.md5("hussain")).processRequest("-"),"msg"));
    assertEquals(Engine.instance().users.size(),1);
   
    assertEquals(
        "EXCEPTION : Can not logout: user is not in the users list",
        JavascriptEval.getJSONproperty(
            new dologout(Engine.md5("Ali")).processRequest("-"),"msg"));
    assertEquals(Engine.instance().users.size(),1);
   
    assertEquals(
        "OK",
        JavascriptEval.getJSONproperty(
            new dologout(Engine.md5("ali")).processRequest("-"),"msg"));
    assertEquals(Engine.instance().users.size(),0);
  }
View Full Code Here

TOP

Related Classes of scotlandyard.servlets.users.dologout

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.