public class LoginTest extends BaseWebScriptTest
BaseWebScriptTest.BaseWebScriptTestListener, BaseWebScriptTest.HttpMethodResponse, BaseWebScriptTest.PatchMethod, BaseWebScriptTest.RemoteServer, BaseWebScriptTest.WebScriptTestListener
Constructor and Description |
---|
LoginTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testAuthentication()
Positive test - login and retrieve a ticket via get - return xml,
- via get method
validate ticket
logout
fail to validate ticket
fail to get ticket
|
void |
testAuthenticationGetJSON()
Positive test - login and retrieve a ticket,
- via json method
|
void |
testMissingParameters()
Negative test - missing parameters
|
void |
testPostLogin()
Authenticate via a POST
|
void |
testWrongPassword()
Negative tests - wrong password
|
getCustomAuthenticatorFactory, getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomAuthenticatorFactory, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRes
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
protected void setUp() throws java.lang.Exception
setUp
in class BaseWebScriptTest
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testAuthentication() throws java.lang.Exception
java.lang.Exception
public void testAuthenticationGetJSON() throws java.lang.Exception
java.lang.Exception
public void testPostLogin() throws java.lang.Exception
java.lang.Exception
public void testWrongPassword() throws java.lang.Exception
java.lang.Exception
public void testMissingParameters() throws java.lang.Exception
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.