hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject cvs commit: jakarta-hivemind/framework/src/test/org/apache/hivemind/order TestOrderer.java
Date Wed, 04 May 2005 03:24:13 GMT
jcarman     2005/05/03 20:24:13

  Modified:    framework/src/java/org/apache/hivemind/order
                        OrdererMessages.java
               .        status.xml
               framework/src/test/org/apache/hivemind/order
                        TestOrderer.java
  Log:
  OrdererMessages.exception uses wrong message key.
  PR: HIVEMIND-101
  
  Revision  Changes    Path
  1.8       +1 -1      jakarta-hivemind/framework/src/java/org/apache/hivemind/order/OrdererMessages.java
  
  Index: OrdererMessages.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/order/OrdererMessages.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- OrdererMessages.java	5 Jan 2005 18:05:17 -0000	1.7
  +++ OrdererMessages.java	4 May 2005 03:24:12 -0000	1.8
  @@ -43,7 +43,7 @@
   
       public static String exception(String objectType, Throwable cause)
       {
  -        return _formatter.format("Orderer.exception", objectType, cause);
  +        return _formatter.format("exception", objectType, cause);
       }
   
       public static String dupeLeader(
  
  
  
  1.130     +1 -0      jakarta-hivemind/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/status.xml,v
  retrieving revision 1.129
  retrieving revision 1.130
  diff -u -r1.129 -r1.130
  --- status.xml	4 May 2005 03:09:03 -0000	1.129
  +++ status.xml	4 May 2005 03:24:13 -0000	1.130
  @@ -31,6 +31,7 @@
     </todo>
     <changes>
       <release version="1.1-beta-2" date="unreleased">
  +      <action type="fix" dev="JC" fixes-bug="HIVEMIND-101" >OrdererMessages.exception
uses wrong message key.</action>
         <action type="add" dev="JC" fixes-bug="HIVEMIND-112" >Add getServiceIds() Method
to Registry Interface.</action>
         <action type="fix" dev="JC" fixes-bug="HIVEMIND-115" >Bean services cannot
implement RegistryShutdownListener.</action>
       </release>
  
  
  
  1.12      +9 -0      jakarta-hivemind/framework/src/test/org/apache/hivemind/order/TestOrderer.java
  
  Index: TestOrderer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/test/org/apache/hivemind/order/TestOrderer.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TestOrderer.java	5 Jan 2005 18:05:54 -0000	1.11
  +++ TestOrderer.java	4 May 2005 03:24:13 -0000	1.12
  @@ -333,4 +333,13 @@
           assertEquals(0, l.size());
       }
   
  +    public void testException() throws Exception
  +    {
  +            String msg = OrdererMessages.exception("cartoon character", new NullPointerException(
  +                    "Unknown character exception"));
  +            assertEquals(
  +                    "Improper message returned from exception orderer",
  +                    "Unable to order cartoon characters: Unknown character exception",
  +                    msg);
  +    }
   }
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message