You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jm...@apache.org on 2003/01/14 01:08:45 UTC

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/apache/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/apache/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/apache/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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: cvs commit: jakarta-commons-sandbox/resources/src/test/org/apache/commons/resources/impl CollectionResourcesBaseTestCase.java ResourceBundleResourcesTestCase.java ResourcesBaseTestCase.java

Posted by James Mitchell <jm...@apache.org>.
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: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>