commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl ResourceBundleResourcesTestCase.java CollectionResourcesBaseTestCase.java ResourcesBaseTestCase.java
Date Mon, 22 Sep 2003 00:44:00 GMT
dgraham     2003/09/21 17:44:00

  Modified:    resources/src/test/org/apache/commons/resources/impl
                        ResourceBundleResourcesTestCase.java
                        CollectionResourcesBaseTestCase.java
                        ResourcesBaseTestCase.java
  Log:
  Removed unused variables.
  
  Revision  Changes    Path
  1.5       +5 -5      jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl/ResourceBundleResourcesTestCase.java
  
  Index: ResourceBundleResourcesTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl/ResourceBundleResourcesTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ResourceBundleResourcesTestCase.java	28 Feb 2003 02:54:50 -0000	1.4
  +++ ResourceBundleResourcesTestCase.java	22 Sep 2003 00:44:00 -0000	1.5
  @@ -149,7 +149,7 @@
           Locale locale = new Locale("en","");
           try {
               resources.setReturnNull(false);
  -            String value = resources.getString("test.missing", locale, null);
  +            resources.getString("test.missing", locale, null);
               fail("Should have thrown ResourcesException");
           } catch (ResourcesKeyException e) {
               ; // Expected result
  
  
  
  1.6       +11 -10    jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl/CollectionResourcesBaseTestCase.java
  
  Index: CollectionResourcesBaseTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl/CollectionResourcesBaseTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CollectionResourcesBaseTestCase.java	8 Sep 2003 18:14:56 -0000	1.5
  +++ CollectionResourcesBaseTestCase.java	22 Sep 2003 00:44:00 -0000	1.6
  @@ -203,13 +203,14 @@
           } catch (ResourcesException e) {
               fail("Should have returned null");
           }
  +		
           try {
  -            resources.setReturnNull(false); 
  -           String value = resources.getString("test.missing", locale, null);
  -            fail("Should have thrown ResourcesException");
  -        } catch (ResourcesKeyException e) {
  -            ; // Expected result
  -        }
  +			resources.setReturnNull(false);
  +			resources.getString("test.missing", locale, null);
  +			fail("Should have thrown ResourcesException");
  +		} catch (ResourcesKeyException e) {
  +			; // Expected result
  +		}
   
       }
   
  
  
  
  1.7       +5 -5      jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl/ResourcesBaseTestCase.java
  
  Index: ResourcesBaseTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl/ResourcesBaseTestCase.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ResourcesBaseTestCase.java	17 Aug 2003 03:34:14 -0000	1.6
  +++ ResourcesBaseTestCase.java	22 Sep 2003 00:44:00 -0000	1.7
  @@ -178,7 +178,7 @@
           Locale locale = new Locale("en","");
           try {
               resources.setReturnNull(false);
  -            String value = resources.getString("test.missing", locale, null);
  +            resources.getString("test.missing", locale, null);
               fail("Should have thrown ResourcesException");
           } catch (ResourcesKeyException e) {
               ; // Expected result
  
  
  

Mime
View raw message