cvs commit: spice/sandbox/metaclass/src/test/org/realityforge/metaclass/model ModelTestCase.java

Peter Donald <[email protected]>
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
donaldp     03/10/28 03:24:21

  Modified:    sandbox/metaclass/src/test/org/realityforge/metaclass/model
                        ModelTestCase.java
  Log:
  Remove field tests
  
  Revision  Changes    Path
  1.11      +1 -58     spice/sandbox/metaclass/src/test/org/realityforge/metaclass/model/ModelTestCase.java
  
  Index: ModelTestCase.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/metaclass/src/test/org/realityforge/metaclass/model/ModelTestCase.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ModelTestCase.java	28 Oct 2003 11:04:21 -0000	1.10
  +++ ModelTestCase.java	28 Oct 2003 11:24:21 -0000	1.11
  @@ -12,68 +12,11 @@
   /**
    *
    * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
  - * @version $Revision: 1.10 $ $Date: 2003/10/28 11:04:21 $
  + * @version $Revision: 1.11 $ $Date: 2003/10/28 11:24:21 $
    */
   public class ModelTestCase
       extends TestCase
   {
  -    public void testFieldWithNullName()
  -    {
  -        try
  -        {
  -            new FieldDescriptor( null, "type", Attribute.EMPTY_SET );
  -        }
  -        catch( final NullPointerException npe )
  -        {
  -            assertEquals( "npe for name", "name", npe.getMessage() );
  -        }
  -    }
  -
  -    public void testFieldWithNullType()
  -    {
  -        try
  -        {
  -            new FieldDescriptor( "name", null, Attribute.EMPTY_SET );
  -        }
  -        catch( final NullPointerException npe )
  -        {
  -            assertEquals( "npe for type", "type", npe.getMessage() );
  -        }
  -    }
  -
  -    public void testFieldWithNullAttributes()
  -    {
  -        try
  -        {
  -            new FieldDescriptor( "name", "type", null );
  -        }
  -        catch( final NullPointerException npe )
  -        {
  -            assertEquals( "npe for attributes", "attributes", npe.getMessage() );
  -        }
  -    }
  -
  -    public void testFieldWithAttributesContainingNull()
  -    {
  -        try
  -        {
  -            new FieldDescriptor( "name", "type", new Attribute[]{null} );
  -        }
  -        catch( final NullPointerException npe )
  -        {
  -            assertEquals( "npe for attributes[0]", "attributes[0]", npe.getMessage() );
  -        }
  -    }
  -
  -    public void testField()
  -    {
  -        final FieldDescriptor field =
  -            new FieldDescriptor( "name", "type", Attribute.EMPTY_SET );
  -        assertEquals( "field.name", "name", field.getName() );
  -        assertEquals( "field.type", "type", field.getType() );
  -        assertEquals( "field.getAttributes().length", 0, field.getAttributes().length );
  -    }
  -
       public void testMethodWithNullName()
       {
           try
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.