Methods Summary |
---|
public void | beginPasswordParameterEmptyString(org.apache.cactus.WebRequest webRequest)
webRequest.addParameter("username", "coyner_b", WebRequest.POST_METHOD);
webRequest.addParameter("password", "", WebRequest.POST_METHOD);
|
public void | beginPasswordParameterNull(org.apache.cactus.WebRequest webRequest)
webRequest.addParameter("username", "coyner_b", WebRequest.POST_METHOD);
|
public void | beginUsernameParameterEmptyString(org.apache.cactus.WebRequest webRequest)
webRequest.addParameter("username", "", WebRequest.POST_METHOD);
webRequest.addParameter("password", "secret", WebRequest.POST_METHOD);
|
public void | beginUsernameParameterNull(org.apache.cactus.WebRequest webRequest)
webRequest.addParameter("password", "secret", WebRequest.POST_METHOD);
|
public void | beginValidFormParameters(org.apache.cactus.WebRequest webRequest)
webRequest.addParameter("username", "coyner_b", WebRequest.POST_METHOD);
webRequest.addParameter("password", "secret", WebRequest.POST_METHOD);
|
public void | setUp()
this.servlet = new LoginServlet();
|
public void | testPasswordParameterEmptyString()
assertTrue("Password not entered.",
!this.servlet.validateParameters(this.request));
|
public void | testPasswordParameterNull()
assertTrue("Passord form field not specified in request.",
!this.servlet.validateParameters(this.request));
|
public void | testUsernameParameterEmptyString()
assertTrue("Username not entered.",
!this.servlet.validateParameters(this.request));
|
public void | testUsernameParameterNull()
assertTrue("Username form field not specified in request.",
!this.servlet.validateParameters(this.request));
|
public void | testValidFormParameters()
assertTrue("Valid Parameters.",
this.servlet.validateParameters(this.request));
|