cvs commit: spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io SAXMetaClassSerializerTestCase.java

Peter Donald <[email protected]>
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
donaldp     03/10/29 02:19:09

  Modified:    sandbox/metaclass/src/test/org/realityforge/metaclass/io
                        SAXMetaClassSerializerTestCase.java
  Log:
  Wrap all method parameters in a <parameters/> element
  
  Revision  Changes    Path
  1.6       +4 -2      spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io/SAXMetaClassSerializerTestCase.java
  
  Index: SAXMetaClassSerializerTestCase.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io/SAXMetaClassSerializerTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SAXMetaClassSerializerTestCase.java	28 Oct 2003 13:40:53 -0000	1.5
  +++ SAXMetaClassSerializerTestCase.java	29 Oct 2003 10:19:08 -0000	1.6
  @@ -95,7 +95,9 @@
           final AttributesImpl attrs = new AttributesImpl();
           add( attrs, SAXMetaClassSerializer.NAME_ATTRIBUTE, name );
           add( attrs, SAXMetaClassSerializer.TYPE_ATTRIBUTE, value );
  -        start( mockHandler, SAXMetaClassSerializer.PARAMETERS_ELEMENT, attrs );
  +        start( mockHandler, SAXMetaClassSerializer.PARAMETERS_ELEMENT, new AttributesImpl() );
  +        start( mockHandler, SAXMetaClassSerializer.PARAMETER_ELEMENT, attrs );
  +        end( mockHandler, SAXMetaClassSerializer.PARAMETER_ELEMENT );
           end( mockHandler, SAXMetaClassSerializer.PARAMETERS_ELEMENT );
   
           final ContentHandler handler = (ContentHandler)mockHandler.proxy();
  @@ -135,7 +137,7 @@
               new MethodDescriptor( name,
                                     type,
                                     ParameterDescriptor.EMPTY_SET,
  -                                  Attribute.EMPTY_SET, 
  +                                  Attribute.EMPTY_SET,
                                     Attribute.EMPTY_SET )
           };
           serializer.serializeMethods( handler, methods );
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  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.