commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitch...@apache.org>
Subject RE: cvs commit: jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl CollectionResourcesBaseTestCase.java ResourceBundleResourcesTestCase.java ResourcesBaseTestCase.java
Date Tue, 14 Jan 2003 00:09:57 GMT
Ok, so I said that wrong.....you know what I mean.


--
James Mitchell

> -----Original Message-----
> From: jmitchell@apache.org [mailto:jmitchell@apache.org] 
> Sent: Monday, January 13, 2003 7:09 PM
> To: jakarta-commons-sandbox-cvs@apache.org
> Subject: cvs commit: 
> jakarta-commons-sandbox/resources/src/test/org/apache/commons/
> resources/impl CollectionResourcesBaseTestCase.java 
> ResourceBundleResourcesTestCase.java ResourcesBaseTestCase.java
> 
> 
> jmitchell    2003/01/13 16:08:45
> 
>   Modified:    resources/src/test/org/apache/commons/resources/impl
>                         CollectionResourcesBaseTestCase.java
>                         ResourceBundleResourcesTestCase.java
>                         ResourcesBaseTestCase.java
>   Log:
>   Change Locale constructors to be compatible with JDK1.3
>   
>   Revision  Changes    Path
>   1.3       +6 -6      
> 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/apach
> e/commons/resources/impl/CollectionResourcesBaseTestCase.java,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- CollectionResourcesBaseTestCase.java	9 Jan 2003 
> 03:25:24 -0000	1.2
>   +++ CollectionResourcesBaseTestCase.java	14 Jan 2003 
> 00:08:45 -0000	1.3
>   @@ -172,7 +172,7 @@
>            test = new Locale("en", "");
>            expected = new ArrayList();
>            expected.add(test);
>   -        expected.add(new Locale(""));
>   +        expected.add(new Locale("",""));
>            checkLocaleList(test, expected, 
> cresources.getLocaleList(test));
>    
>            test = new Locale("", "US", "POSIX");
>   @@ -194,7 +194,7 @@
>        // Test retrieving missing resource keys
>        public void testMissing() throws Exception {
>    
>   -        Locale locale = new Locale("en");
>   +        Locale locale = new Locale("en","");
>            try {
>                resources.setReturnNull(true);
>                String value = 
> resources.getString("test.missing", locale, null);
>   
>   
>   
>   1.3       +7 -7      
> 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/apach
> e/commons/resources/impl/ResourceBundleResourcesTestCase.java,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- ResourceBundleResourcesTestCase.java	28 Dec 2002 
> 04:40:56 -0000	1.2
>   +++ ResourceBundleResourcesTestCase.java	14 Jan 2003 
> 00:08:45 -0000	1.3
>   @@ -147,7 +147,7 @@
>        // Test retrieving missing resource keys
>        public void testMissing() throws Exception {
>    
>   -        Locale locale = new Locale("en");
>   +        Locale locale = new Locale("en","");
>            try {
>                resources.setReturnNull(false);
>                String value = 
> resources.getString("test.missing", locale, null);
>   @@ -180,7 +180,7 @@
>    
>            Locale locale = null;
>    
>   -        locale = new Locale("en");
>   +        locale = new Locale("en","");
>            assertEquals("en specific value",
>                         "[en] SPECIFIC",
>                         resources.getString("test.specific", 
> locale, null));
>   @@ -190,7 +190,7 @@
>                         "[en_US] SPECIFIC",
>                         resources.getString("test.specific", 
> locale, null));
>    
>   -        locale = new Locale("fr");
>   +        locale = new Locale("fr","");
>            assertEquals("fr specific value",
>                         "[fr] SPECIFIC",
>                         resources.getString("test.specific", 
> locale, null));
>   
>   
>   
>   1.4       +7 -7      
> 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/apach
> e/commons/resources/impl/ResourcesBaseTestCase.java,v
>   retrieving revision 1.3
>   retrieving revision 1.4
>   diff -u -r1.3 -r1.4
>   --- ResourcesBaseTestCase.java	5 Jan 2003 03:29:58 
> -0000	1.3
>   +++ ResourcesBaseTestCase.java	14 Jan 2003 00:08:45 
> -0000	1.4
>   @@ -148,7 +148,7 @@
>        // Test retrieving missing resource keys
>        public void testMissing() throws Exception {
>    
>   -        Locale locale = new Locale("en");
>   +        Locale locale = new Locale("en","");
>            try {
>                resources.setReturnNull(false);
>                String value = 
> resources.getString("test.missing", locale, null);
>   @@ -193,7 +193,7 @@
>    
>            Locale locale = null;
>    
>   -        locale = new Locale("en");
>   +        locale = new Locale("en","");
>            assertEquals("en specific value",
>                         "[test] SPECIFIC",
>                         resources.getString("test.specific", 
> locale, null));
>   @@ -203,7 +203,7 @@
>                         "[test] SPECIFIC",
>                         resources.getString("test.specific", 
> locale, null));
>    
>   -        locale = new Locale("fr");
>   +        locale = new Locale("fr","");
>            assertEquals("fr specific value",
>                         "[test] SPECIFIC",
>                         resources.getString("test.specific", 
> locale, null));
>   
>   
>   
> 
> --
> To unsubscribe, e-mail:   
> <mailto:commons-dev-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> 
> 


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


Mime
View raw message