avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/loader/src/test/org/apache/excalibur/loader/builder/test ReaderTestCase.java
Date Sat, 07 Sep 2002 01:58:36 GMT
donaldp     2002/09/06 18:58:36

  Modified:    loader/src/test/org/apache/excalibur/loader/builder/test
                        ReaderTestCase.java
  Log:
  Check content of filesets
  
  Revision  Changes    Path
  1.5       +37 -0     jakarta-avalon-excalibur/loader/src/test/org/apache/excalibur/loader/builder/test/ReaderTestCase.java
  
  Index: ReaderTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/loader/src/test/org/apache/excalibur/loader/builder/test/ReaderTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ReaderTestCase.java	7 Sep 2002 01:52:34 -0000	1.4
  +++ ReaderTestCase.java	7 Sep 2002 01:58:36 -0000	1.5
  @@ -88,6 +88,43 @@
           assertNotNull( "Join join2",
                          defs.getJoin( "join2" ) );
   
  +        assertEquals( "ClassLoader cl1.entrys Name",
  +                      defs.getClassLoader( "cl1" ).getName(),
  +                      "cl1" );
  +        assertEquals( "ClassLoader cl1.entrys Count",
  +                      defs.getClassLoader( "cl1" ).getEntrys().length,
  +                      2 );
  +        assertEquals( "ClassLoader cl1.filesets Count",
  +                      defs.getClassLoader( "cl1" ).getFilesets().length,
  +                      1 );
  +        assertEquals( "ClassLoader cl1.extensions Count",
  +                      defs.getClassLoader( "cl1" ).getExtensions().length,
  +                      1 );
  +        assertEquals( "ClassLoader cl1.fileset[0] Dir",
  +                      defs.getClassLoader( "cl1" ).getFilesets()[ 0 ].getBaseDirectory(),
  +                      "someDir" );
  +        assertEquals( "ClassLoader cl1.fileset[0] Include count",
  +                      defs.getClassLoader( "cl1" ).getFilesets()[ 0 ].getIncludes().length,
  +                      2 );
  +        assertEquals( "ClassLoader cl1.fileset[0] Exclude count",
  +                      defs.getClassLoader( "cl1" ).getFilesets()[ 0 ].getExcludes().length,
  +                      1 );
  +        assertEquals( "ClassLoader cl1.fileset[0].include[0] name",
  +                      defs.getClassLoader( "cl1" ).getFilesets()[ 0 ].getIncludes()[ 0
],
  +                      "**/*.jar" );
  +        assertEquals( "ClassLoader cl1.fileset[0].include[1] name",
  +                      defs.getClassLoader( "cl1" ).getFilesets()[ 0 ].getIncludes()[ 1
],
  +                      "**/*.bar" );
  +        assertEquals( "ClassLoader cl1.fileset[0].exclude[0] name",
  +                      defs.getClassLoader( "cl1" ).getFilesets()[ 0 ].getExcludes()[ 0
],
  +                      "**/unwanted/*" );
  +        assertEquals( "ClassLoader cl1.entrys[0] Location",
  +                      defs.getClassLoader( "cl1" ).getEntrys()[ 0 ].getLocation(),
  +                      "someFile.jar" );
  +        assertEquals( "ClassLoader cl1.entrys[1] Location",
  +                      defs.getClassLoader( "cl1" ).getEntrys()[ 1 ].getLocation(),
  +                      "someOtherFile.jar" );
  +
           assertEquals( "ClassLoader cl2.entrys Name",
                         defs.getClassLoader( "cl2" ).getName(),
                         "cl2" );
  
  
  

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