commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ep...@apache.org
Subject cvs commit: jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration TestBaseConfiguration.java
Date Fri, 28 Feb 2003 20:25:40 GMT
epugh       2003/02/28 12:25:40

  Modified:    configuration/src/test/org/apache/commons/configuration
                        TestBaseConfiguration.java
  Log:
  remove extra printStackTrace..  makes you think it failed when it didn't!
  
  Revision  Changes    Path
  1.6       +5 -6      jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration/TestBaseConfiguration.java
  
  Index: TestBaseConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/configuration/src/test/org/apache/commons/configuration/TestBaseConfiguration.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestBaseConfiguration.java	7 Feb 2003 00:21:50 -0000	1.5
  +++ TestBaseConfiguration.java	28 Feb 2003 20:25:40 -0000	1.6
  @@ -274,9 +274,9 @@
           eprop.setProperty( "test.first-level", "${test.base-level}/first-level" );
           eprop.setProperty( "test.second-level", "${test.first-level}/second-level" );
           eprop.setProperty( "test.third-level", "${test.second-level}/third-level" );
  -        
  +
           String expectedValue = "/base-level/first-level/second-level/third-level";
  -        
  +
           assertEquals( eprop.getString( "test.third-level" ),  expectedValue );
       }
   
  @@ -284,15 +284,14 @@
       {
           eprop.setProperty( "test.a", "${test.b}" );
           eprop.setProperty( "test.b", "${test.a}" );
  -        
  +
           try {
               eprop.getString( "test.a" );
           }
           catch( IllegalStateException e ) {
  -            e.printStackTrace();
               return;
           }
  -        
  +
           fail( "IllegalStateException should have been thrown for looped property references"
);
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message