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

Peter Donald <[email protected]>
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
donaldp     03/10/31 17:14:01

  Modified:    sandbox/metaclass/src/test/org/realityforge/metaclass/io
                        DOMMetaClassDeserializerTestCase.java
  Log:
  add comments to test coverage
  
  Revision  Changes    Path
  1.12      +5 -3      spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io/DOMMetaClassDeserializerTestCase.java
  
  Index: DOMMetaClassDeserializerTestCase.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io/DOMMetaClassDeserializerTestCase.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DOMMetaClassDeserializerTestCase.java	1 Nov 2003 01:09:49 -0000	1.11
  +++ DOMMetaClassDeserializerTestCase.java	1 Nov 2003 01:14:01 -0000	1.12
  @@ -24,7 +24,7 @@
   /**
    *
    * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
  - * @version $Revision: 1.11 $ $Date: 2003/11/01 01:09:49 $
  + * @version $Revision: 1.12 $ $Date: 2003/11/01 01:14:01 $
    */
   public class DOMMetaClassDeserializerTestCase
       extends TestCase
  @@ -243,7 +243,7 @@
           final Document document = createDocument();
           final Element root = document.createElement( MetaClassIOXml.FIELDS_ELEMENT );
           final Comment comment1 =
  -            document.createComment( "This comment brought to you by Comments-R-Us" );
  +            document.createComment( "This comment2 brought to you by Comments-R-Us" );
           root.appendChild( comment1 );
           final Element element = document.createElement( MetaClassIOXml.FIELD_ELEMENT );
           root.appendChild( element );
  @@ -254,9 +254,11 @@
           element.appendChild( attributes );
           final Element attribute = document.createElement( MetaClassIOXml.ATTRIBUTE_ELEMENT );
           attributes.appendChild( attribute );
  -        attribute.setAttribute( MetaClassIOXml.NAME_ATTRIBUTE, "myAttribute" );
           final Comment comment = document.createComment( "Random COmment" );
           attributes.appendChild( comment );
  +        attribute.setAttribute( MetaClassIOXml.NAME_ATTRIBUTE, "myAttribute" );
  +        final Comment comment2 = document.createComment( "Random COmment" );
  +        attribute.appendChild( comment2 );
   
           final FieldDescriptor[] fields = deserializer.buildFields( root );
           assertEquals( "fields.length", 1, fields.length );
  
  
  


-------------------------------------------------------
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.