You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2003/07/12 15:12:57 UTC

cvs commit: avalon-sandbox/meta/api/src/test/org/apache/avalon/meta/info/test TypeTestCase.java

mcconnell    2003/07/12 06:12:57

  Modified:    meta/api/src/test/org/apache/avalon/meta/info/test
                        TypeTestCase.java
  Log:
  Added some formatting as test identification.
  
  Revision  Changes    Path
  1.2       +11 -4     avalon-sandbox/meta/api/src/test/org/apache/avalon/meta/info/test/TypeTestCase.java
  
  Index: TypeTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/meta/api/src/test/org/apache/avalon/meta/info/test/TypeTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TypeTestCase.java	11 Jul 2003 21:36:28 -0000	1.1
  +++ TypeTestCase.java	12 Jul 2003 13:12:57 -0000	1.2
  @@ -133,13 +133,20 @@
   
       public void testType()
       {
  -        Type type = new Type(m_descriptor, m_loggers, m_context, m_services, m_dependencies, m_stages, m_extensions, m_defaults);
  +        Type type = 
  +          new Type(
  +            m_descriptor, m_loggers, m_context, m_services, m_dependencies, 
  +            m_stages, m_extensions, m_defaults);
           checkType(type);
       }
   
       public void testSerialization() throws IOException, ClassNotFoundException
       {
  -        Type type = new Type( m_descriptor, m_loggers, m_context, m_services, m_dependencies, m_stages, m_extensions, m_defaults );
  +        Type type = 
  +          new Type( 
  +            m_descriptor, m_loggers, m_context, m_services, m_dependencies, 
  +            m_stages, m_extensions, m_defaults );
  +
           checkType( type );
   
           File file = new File( "test.out" );
  @@ -154,8 +161,8 @@
   
           checkType( serialized );
   
  -        assertEquals( type, serialized );
  -        assertEquals( type.hashCode(), serialized.hashCode() );
  +        assertEquals( "equality", type, serialized );
  +        assertEquals( "hashcode", type.hashCode(), serialized.hashCode() );
   
       }
    }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org