commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmitch...@apache.org
Subject svn commit: r225225 - /jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java
Date Tue, 26 Jul 2005 03:38:10 GMT
Author: jmitchell
Date: Mon Jul 25 20:38:05 2005
New Revision: 225225

URL: http://svn.apache.org/viewcvs?rev=225225&view=rev
Log:
set returnNull to false to force ???local.missing???

Modified:
    jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java

Modified: jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java?rev=225225&r1=225224&r2=225225&view=diff
==============================================================================
--- jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java
(original)
+++ jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java
Mon Jul 25 20:38:05 2005
@@ -71,6 +71,7 @@
     public void setUp() throws Exception {
         factory = new ResourceBundleResourcesFactory();
         resources = factory.getResources(NAME, CONFIG);
+        resources.setReturnNull(false);
         messages = new Messages(resources);
     }
 
@@ -117,6 +118,7 @@
 			"[Local] REPLACE abc WITH def",
 			message);
 
+		local.getResources().setReturnNull(false);
 		message = local.getMessage("local.missing");
 		assertEquals("Correct missing message", "???local.missing???", message);
 		
@@ -253,12 +255,10 @@
 			public void setReturnNull(boolean returnNull) {}
 
 			public Resources getResources(String name, String config) throws ResourcesException {
-				// TODO Auto-generated method stub
 				return null;
 			}
 
 			public void release() throws ResourcesException {
-				// TODO Auto-generated method stub
 				
 			}
 		};



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