2009/04/15 - Apache HiveMind has been retired.

For more information, please explore the Attic.

Clover coverage report - Code Coverage for hivemind release 1.2.1
Coverage timestamp: Fri Feb 10 2006 16:33:43 PST
file stats: LOC: 72   Methods: 6
NCLOC: 42   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
OrdererMessages.java - 100% 100% 100%
coverage
 1    // Copyright 2004, 2005 The Apache Software Foundation
 2    //
 3    // Licensed under the Apache License, Version 2.0 (the "License");
 4    // you may not use this file except in compliance with the License.
 5    // You may obtain a copy of the License at
 6    //
 7    // http://www.apache.org/licenses/LICENSE-2.0
 8    //
 9    // Unless required by applicable law or agreed to in writing, software
 10    // distributed under the License is distributed on an "AS IS" BASIS,
 11    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12    // See the License for the specific language governing permissions and
 13    // limitations under the License.
 14   
 15    package org.apache.hivemind.order;
 16   
 17    import org.apache.hivemind.HiveMind;
 18    import org.apache.hivemind.impl.MessageFormatter;
 19    import org.apache.hivemind.util.StringUtils;
 20   
 21    /**
 22    * Messages for classes in this package.
 23    *
 24    * @author Howard Lewis Ship
 25    */
 26    class OrdererMessages
 27    {
 28    protected static MessageFormatter _formatter = new MessageFormatter(OrdererMessages.class);
 29   
 30  1 static String duplicateName(String objectType, String objectName, Object newObject,
 31    Object existingObject)
 32    {
 33  1 return _formatter.format(
 34    "duplicate-name",
 35    StringUtils.capitalize(objectType),
 36    objectName,
 37    HiveMind.getLocationString(existingObject));
 38    }
 39   
 40  1 static String exception(String objectType, Throwable cause)
 41    {
 42  1 return _formatter.format("exception", objectType, cause);
 43    }
 44   
 45  1 static String dupeLeader(String objectType, ObjectOrdering newOrdering,
 46    ObjectOrdering existingLeader)
 47    {
 48  1 return _formatter.format("dupe-leader", new Object[]
 49    { StringUtils.capitalize(objectType), newOrdering.getName(), existingLeader.getName(),
 50    HiveMind.getLocationString(existingLeader.getObject()) });
 51    }
 52   
 53  1 static String dupeTrailer(String objectType, ObjectOrdering newOrdering,
 54    ObjectOrdering existingTrailer)
 55    {
 56  1 return _formatter.format("dupe-trailer", new Object[]
 57    { StringUtils.capitalize(objectType), newOrdering.getName(), existingTrailer.getName(),
 58    HiveMind.getLocationString(existingTrailer.getObject()) });
 59    }
 60   
 61  2 static String dependencyCycle(String objectType, ObjectOrdering trigger, Throwable cause)
 62    {
 63  2 return _formatter.format("dependency-cycle", objectType, trigger.getName(), cause);
 64    }
 65   
 66  2 static String badDependency(String objectType, String dependencyName, ObjectOrdering ordering)
 67    {
 68  2 return _formatter.format("bad-dependency", objectType, dependencyName, ordering.getName());
 69   
 70    }
 71   
 72    }