avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/container/src/test/org/apache/excalibur/container/classloader/test ComponentClassLoaderTestCase.java
Date Wed, 11 Sep 2002 20:09:38 GMT
bloritsch    2002/09/11 13:09:38

  Modified:    container/src/test/org/apache/excalibur/container/classloader/test
                        ComponentClassLoaderTestCase.java
  Log:
  update the testcode a little so that we detect a nullpointer before it happens
  
  Revision  Changes    Path
  1.2       +5 -0      jakarta-avalon-excalibur/container/src/test/org/apache/excalibur/container/classloader/test/ComponentClassLoaderTestCase.java
  
  Index: ComponentClassLoaderTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/container/src/test/org/apache/excalibur/container/classloader/test/ComponentClassLoaderTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ComponentClassLoaderTestCase.java	11 Sep 2002 19:58:49 -0000	1.1
  +++ ComponentClassLoaderTestCase.java	11 Sep 2002 20:09:38 -0000	1.2
  @@ -50,6 +50,8 @@
       public void testEmptyManifest()
       {
           URL jar = this.getClass().getClassLoader().getResource( "/org/apache/excalibur/container/classloader/empty.jar"
);
  +        assertTrue( jar != null );
  +
           ComponentClassLoader loader = new ComponentClassLoader( new URL[] { jar } );
   
           assertEquals( loader.getServices().length, 0 );
  @@ -60,6 +62,7 @@
       public void testBlocksManifest()
       {
           URL jar = this.getClass().getClassLoader().getResource( "/org/apache/excalibur/container/classloader/all.jar"
);
  +        assertTrue( jar != null );
           ComponentClassLoader loader = new ComponentClassLoader( new URL[] { jar } );
   
           String[] blocks = loader.getBlocks();
  @@ -74,6 +77,7 @@
       public void testServicesManifest()
       {
           URL jar = this.getClass().getClassLoader().getResource( "/org/apache/excalibur/container/classloader/all.jar"
);
  +        assertTrue( jar != null );
           ComponentClassLoader loader = new ComponentClassLoader( new URL[] { jar } );
   
           String[] services = loader.getServices();
  @@ -88,6 +92,7 @@
       public void testTypesManifest()
       {
           URL jar = this.getClass().getClassLoader().getResource( "/org/apache/excalibur/container/classloader/all.jar"
);
  +        assertTrue( jar != null );
           ComponentClassLoader loader = new ComponentClassLoader( new URL[] { jar } );
   
           String[] types = loader.getTypes();
  
  
  

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


Mime
View raw message