de.hs_rm.cs.lecturenotes.shared
Class UserTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by de.hs_rm.cs.lecturenotes.shared.UserTest
All Implemented Interfaces:
junit.framework.Test

public final class UserTest
extends junit.framework.TestCase

Tests entity User for its inheritance relationships to

. There is nothing more to test since User is not instanceable. The tests also shows the behavior of instanceof within a hierarchical inheritance structure.

Version:
$LastChangedRevision: 299 $
Author:
Enrico Homann

Constructor Summary
UserTest()
           
 
Method Summary
 void testInstanceAdministratorUser()
          Tests the inheritance hierarchy of AdministratorUser.
 void testInstanceDocentUser()
          Tests the inheritance hierarchy of DocentUser.
 void testInstanceRegisteredUser()
          Tests the inheritance hierarchy of RegisteredUser.
 void testInstanceUnregisteredUser()
          Tests the inheritance hierarchy of UnregisteredUser.
 
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
 

Constructor Detail

UserTest

public UserTest()
Method Detail

testInstanceDocentUser

public void testInstanceDocentUser()
Tests the inheritance hierarchy of DocentUser.


testInstanceRegisteredUser

public void testInstanceRegisteredUser()
Tests the inheritance hierarchy of RegisteredUser.


testInstanceUnregisteredUser

public void testInstanceUnregisteredUser()
Tests the inheritance hierarchy of UnregisteredUser.


testInstanceAdministratorUser

public void testInstanceAdministratorUser()
Tests the inheritance hierarchy of AdministratorUser.