org.designwizard.design.test
Class ClassNodeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.designwizard.design.test.ClassNodeTest
All Implemented Interfaces:
junit.framework.Test

public class ClassNodeTest
extends junit.framework.TestCase


Constructor Summary
ClassNodeTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGetAllClasses()
           
 void testGetAllMethods()
           
 void testGetAllMethodsInClass()
           
 void testGetAllMethodsWithVisibilityAndStaticOption()
           
 void testGetCallers()
           
 void testGetClass()
           
 void testGetClassesThatUses()
           
 void testGetClassesUsedBy()
           
 void testGetEntitiesThatImplements()
           
 void testGetPackageName()
           
 void testGetShortName()
           
 void testGetSubClasses()
           
 void testGetSuperClasses()
           
 void testGetWithVisibility()
           
 void testGetWithVisibilityAndStaticOption()
           
 void testImplementedInterfaces()
           
 void testInheritedFieldsAndMethods()
           
 void testInnerClass()
           
 void testInternalClass()
           
 void testIsArray()
           
 void testIsInterface()
           
 void testIsPrimitive()
           
 void testLoadClass()
           
 void testNumStaticMethods()
          Assests if the number of static methods on classes are not large.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassNodeTest

public ClassNodeTest()
Method Detail

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testLoadClass

public void testLoadClass()
                   throws java.io.IOException,
                          InexistentEntityException
Throws:
java.io.IOException
InexistentEntityException

testGetShortName

public void testGetShortName()
                      throws InexistentEntityException
Throws:
InexistentEntityException

testInternalClass

public void testInternalClass()
                       throws InexistentEntityException
Throws:
InexistentEntityException

testIsPrimitive

public void testIsPrimitive()
                     throws java.io.IOException,
                            InexistentEntityException
Throws:
java.io.IOException
InexistentEntityException

testIsArray

public void testIsArray()
                 throws java.io.IOException,
                        InexistentEntityException
Throws:
java.io.IOException
InexistentEntityException

testImplementedInterfaces

public void testImplementedInterfaces()
                               throws InexistentEntityException,
                                      java.io.IOException
Throws:
InexistentEntityException
java.io.IOException

testGetPackageName

public void testGetPackageName()
                        throws java.io.IOException,
                               InexistentEntityException
Throws:
java.io.IOException
InexistentEntityException

testIsInterface

public void testIsInterface()
                     throws InexistentEntityException
Throws:
InexistentEntityException

testGetCallers

public void testGetCallers()
                    throws InexistentEntityException
Throws:
InexistentEntityException

testInheritedFieldsAndMethods

public void testInheritedFieldsAndMethods()
                                   throws java.io.IOException,
                                          InexistentEntityException
Throws:
java.io.IOException
InexistentEntityException

testGetEntitiesThatImplements

public void testGetEntitiesThatImplements()
                                   throws java.io.IOException,
                                          InexistentEntityException,
                                          NotAnInterfaceException
Throws:
java.io.IOException
InexistentEntityException
NotAnInterfaceException

testGetAllMethodsWithVisibilityAndStaticOption

public void testGetAllMethodsWithVisibilityAndStaticOption()
                                                    throws java.io.IOException,
                                                           InvalidTypeOfVisibility,
                                                           InexistentEntityException
Throws:
java.io.IOException
InvalidTypeOfVisibility
InexistentEntityException

testGetAllMethods

public void testGetAllMethods()
                       throws java.io.IOException,
                              InexistentEntityException
Throws:
java.io.IOException
InexistentEntityException

testGetWithVisibilityAndStaticOption

public void testGetWithVisibilityAndStaticOption()
                                          throws java.io.IOException,
                                                 InexistentEntityException,
                                                 InvalidTypeOfVisibility
Throws:
java.io.IOException
InexistentEntityException
InvalidTypeOfVisibility

testGetWithVisibility

public void testGetWithVisibility()
                           throws java.io.IOException,
                                  InexistentEntityException,
                                  InvalidTypeOfVisibility
Throws:
java.io.IOException
InexistentEntityException
InvalidTypeOfVisibility

testGetAllMethodsInClass

public void testGetAllMethodsInClass()
                              throws java.io.IOException,
                                     InexistentEntityException
Throws:
java.io.IOException
InexistentEntityException

testGetSubClasses

public void testGetSubClasses()
                       throws InexistentEntityException,
                              java.io.IOException
Throws:
InexistentEntityException
java.io.IOException

testGetClass

public void testGetClass()
                  throws InexistentEntityException,
                         java.io.IOException
Throws:
InexistentEntityException
java.io.IOException

testGetSuperClasses

public void testGetSuperClasses()
                         throws InexistentEntityException,
                                java.io.IOException
Throws:
InexistentEntityException
java.io.IOException

testNumStaticMethods

public void testNumStaticMethods()
                          throws InexistentEntityException,
                                 java.io.IOException
Assests if the number of static methods on classes are not large. (This may be a bad sinal in Desing.)

Throws:
InexistentEntityException
java.io.IOException

testGetClassesThatUses

public void testGetClassesThatUses()
                            throws InexistentEntityException,
                                   java.io.IOException
Throws:
InexistentEntityException
java.io.IOException

testGetClassesUsedBy

public void testGetClassesUsedBy()
                          throws InexistentEntityException,
                                 java.io.IOException
Throws:
InexistentEntityException
java.io.IOException

testGetAllClasses

public void testGetAllClasses()
                       throws java.io.IOException
Throws:
java.io.IOException

testInnerClass

public void testInnerClass()
                    throws InexistentEntityException,
                           java.io.IOException
Throws:
InexistentEntityException
java.io.IOException