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, setTraceReqRescountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatprotected void setUp()
throws java.lang.Exception
setUp in class BaseWebScriptTestjava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void testAuthentication()
throws java.lang.Exception
java.lang.Exceptionpublic void testAuthenticationGetJSON()
throws java.lang.Exception
java.lang.Exceptionpublic void testPostLogin()
throws java.lang.Exception
java.lang.Exceptionpublic void testWrongPassword()
throws java.lang.Exception
java.lang.Exceptionpublic void testMissingParameters()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.