/[Apache-SVN]/jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java
ViewVC logotype

Diff of /jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java	2005/05/13 18:31:02	170066
+++ jakarta/commons/proper/resources/trunk/src/test/org/apache/commons/resources/MessagesTestCase.java	2005/05/13 18:32:13	170067
@@ -182,6 +182,19 @@ public class MessagesTestCase extends Te
 		resources2.setReturnNull(false);
         Messages messages2 = new Messages(resources2);
 		message = messages2.getMessage("test.message");
+		
+		Exception exception = new Exception("Bad Implementation");
+		ResourcesException resourcesException = new ResourcesException(exception);
+		try{
+			if (true)
+				 throw resourcesException;
+		}
+		catch(ResourcesException e){
+			assertEquals("Check exception", e, resourcesException);
+			assertEquals("Check exception cause", e.getRootCause(), exception);
+			assertEquals("Check exception message", e.getMessage(), exception.getMessage());
+		}
+		
 	}
 
 

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26