de.fh_mannheim.mm.dms.tests
Class UserManagerTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byde.fh_mannheim.mm.dms.tests.UserManagerTest
All Implemented Interfaces:
junit.framework.Test

public class UserManagerTest
extends junit.framework.TestCase

JUnit test class for user manager. This test class checks different base functionality of the class. Here are following things testet:

Version:
$Revision: 1.15 $
Author:
Jan Löffler, mail@jlsoft.de

Constructor Summary
UserManagerTest(java.lang.String testName)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          Main function which runs the junit TestRunner.
 void setUp()
          Setting up instance.
static junit.framework.Test suite()
          Is called to create the test suite.
 void tearDown()
          Is called for all tests.
 void testCreateUser()
          Test the creation of users.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, name, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserManagerTest

public UserManagerTest(java.lang.String testName)
Constructor.

Method Detail

main

public static void main(java.lang.String[] args)
Main function which runs the junit TestRunner.

Parameters:
args - Parameters

suite

public static junit.framework.Test suite()
Is called to create the test suite.


setUp

public void setUp()
Setting up instance.


tearDown

public void tearDown()
Is called for all tests.


testCreateUser

public void testCreateUser()
                    throws DuplicateUserException,
                           DMSException
Test the creation of users.

Throws:
DuplicateUserException
DMSException