de.hs_rm.cs.lecturenotes.server.core.persistence.dao
Class UserDAOTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by de.hs_rm.cs.lecturenotes.server.core.persistence.dao.UserDAOTest
All Implemented Interfaces:
junit.framework.Test

public class UserDAOTest
extends junit.framework.TestCase

Tests for UserDAO.

Version:
$LastChangedRevision: 299 $
Author:
Enrico Homann

Field Summary
static java.lang.String TEST_USER_ADMINISTRATOR_LOGINNAME
          Login Name of Administrator User.
static java.lang.String TEST_USER_UNREGISTERED_LOGINNAME
          Login Name of Guest User.
static java.lang.String TEST_USER_UNREGISTERED_PASSWORD
          Login Password of Guest User.
 
Constructor Summary
UserDAOTest()
          Default Constructor.
 
Method Summary
 void testCreateEntityAdministrator()
          Tests UserDAO.createEntity() by creation the default Administrator "admin".
 void testCreateEntityUnregistered()
          Tests UserDAO.createEntity() by creation the default Unregistered User "guest".
 void testGetUserList()
          Tests UserDAO.getUserList().
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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_UNREGISTERED_LOGINNAME

public static final java.lang.String TEST_USER_UNREGISTERED_LOGINNAME
Login Name of Guest User.

See Also:
Constant Field Values

TEST_USER_UNREGISTERED_PASSWORD

public static final java.lang.String TEST_USER_UNREGISTERED_PASSWORD
Login Password of Guest User.

See Also:
Constant Field Values
Constructor Detail

UserDAOTest

public UserDAOTest()
Default Constructor.

Method Detail

testCreateEntityAdministrator

public final void testCreateEntityAdministrator()
Tests UserDAO.createEntity() by creation the default Administrator "admin". Dependencies: -


testCreateEntityUnregistered

public final void testCreateEntityUnregistered()
Tests UserDAO.createEntity() by creation the default Unregistered User "guest". Dependencies: -


testGetUserList

public final void testGetUserList()
Tests UserDAO.getUserList(). Dependencies: Needs users in database, createEntity* Tests.