de.hs_rm.cs.lecturenotes.client.core.transport.service
Class UserCommAsyncTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.google.gwt.junit.client.GWTTestCase
              extended by de.hs_rm.cs.lecturenotes.client.core.transport.service.UserCommAsyncTest
All Implemented Interfaces:
junit.framework.Test

public class UserCommAsyncTest
extends com.google.gwt.junit.client.GWTTestCase

Asynchronous Test for GWT RPC Service UserCommService. Needs the server to be started.

Version:
$LastChangedRevision: 299 $
Author:
Enrico Homann

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.junit.client.GWTTestCase
com.google.gwt.junit.client.GWTTestCase.BaseStrategy, com.google.gwt.junit.client.GWTTestCase.TestModuleInfo
 
Field Summary
static java.lang.String TEST_USER_ADMINISTRATOR_LOGINNAME
          Login Name of Administrator User.
static java.lang.String TEST_USER_ADMINISTRATOR_LOGINPASSWORD
          Login Password of Administrator User.
 
Fields inherited from class com.google.gwt.junit.client.GWTTestCase
ALL_GWT_TESTS
 
Constructor Summary
UserCommAsyncTest()
           
 
Method Summary
 java.lang.String getModuleName()
          Must refer to a valid module that sources this class.
 void testGetUserListValidLogin()
          Scenario: Valid Login.
 void testGetUserListWithoutLogin()
          Scenario: Get User List without valid login.
 void testLoginAdministrator()
          Scenario: Test with a valid Administrator user.
 void testLoginFailure()
          Scenario: Test with an invalid user.
 void testLogoutWithNoLogin()
          Scenario: Logout with no login beforehands.
 void testLogoutWithValidLogin()
          Scenario: Logout with valid login beforehands.
 
Methods inherited from class com.google.gwt.junit.client.GWTTestCase
addCheckpoint, catchExceptions, clearCheckpoints, getAllTestModuleNames, getCheckpoints, getModuleCount, getStrategy, getSyntheticModuleName, getTestsForModule, isPureJava, run, setForcePureJava, setName
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, runBare, toString
 
Methods inherited from class junit.framework.Assert
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_USER_ADMINISTRATOR_LOGINNAME

public static final java.lang.String TEST_USER_ADMINISTRATOR_LOGINNAME
Login Name of Administrator User.

See Also:
Constant Field Values

TEST_USER_ADMINISTRATOR_LOGINPASSWORD

public static final java.lang.String TEST_USER_ADMINISTRATOR_LOGINPASSWORD
Login Password of Administrator User.

See Also:
Constant Field Values
Constructor Detail

UserCommAsyncTest

public UserCommAsyncTest()
Method Detail

getModuleName

public final java.lang.String getModuleName()
Must refer to a valid module that sources this class.

Specified by:
getModuleName in class com.google.gwt.junit.client.GWTTestCase
Returns:
String

testLoginFailure

public final void testLoginFailure()
Scenario: Test with an invalid user. (Empty loginname, empty password). Dependencies: -


testLoginAdministrator

public final void testLoginAdministrator()
Scenario: Test with a valid Administrator user. Dependencies: -


testLogoutWithValidLogin

public final void testLogoutWithValidLogin()
Scenario: Logout with valid login beforehands. Dependencies: Valid login, like testLoginDocent


testLogoutWithNoLogin

public final void testLogoutWithNoLogin()
Scenario: Logout with no login beforehands. Dependencies: no login, like after testLogoutWithValidLogin


testGetUserListWithoutLogin

public final void testGetUserListWithoutLogin()
Scenario: Get User List without valid login. Dependencies: No User must be logged in -> testLogout*


testGetUserListValidLogin

public final void testGetUserListValidLogin()
Scenario: Valid Login. Dependencies: testLoginDocent