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 2005/07/26 05:38:10 UTC

svn commit: r225225 - /jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java

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