Clover coverage report - Code Coverage for hivemind-lib release 1.0-beta-2
Coverage timestamp: Sun Aug 1 2004 14:04:17 EDT
file stats: LOC: 84   Methods: 8
NCLOC: 52   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ImplMessages.java - 50% 50% 50%
coverage coverage
 1   
 //  Copyright 2004 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.lib.impl;
 16   
 
 17   
 import javax.naming.Context;
 18   
 
 19   
 import org.apache.commons.logging.Log;
 20   
 import org.apache.commons.logging.LogFactory;
 21   
 import org.apache.hivemind.impl.MessageFormatter;
 22   
 
 23   
 /**
 24   
  * Messages for the lib.impl package.
 25   
  *
 26   
  * @author Howard Lewis Ship
 27   
  */
 28   
 final class ImplMessages
 29   
 {
 30   
     private static final Log LOG = LogFactory.getLog(ImplMessages.class);
 31   
 
 32   
     private static final MessageFormatter _formatter =
 33   
         new MessageFormatter(LOG, ImplMessages.class, "ImplStrings");
 34   
 
 35  0
     public static String unableToCreateDefaultImplementation(Class interfaceType, Throwable cause)
 36   
     {
 37  0
         return _formatter.format(
 38   
             "unable-to-create-default-implementation",
 39   
             interfaceType.getName(),
 40   
             cause.getMessage());
 41   
     }
 42   
 
 43  1
     public static String notAnInterface(Class interfaceType)
 44   
     {
 45  1
         return _formatter.format("not-an-interface", interfaceType.getName());
 46   
     }
 47   
 
 48  7
     public static String defaultImplementationDescription(Class interfaceType)
 49   
     {
 50  7
         return _formatter.format("default-implementation-description", interfaceType.getName());
 51   
     }
 52   
 
 53  3
     public static String ejbProxyDescription(
 54   
         String serviceId,
 55   
         Class serviceInterface,
 56   
         String jndiName)
 57   
     {
 58  3
         return _formatter.format(
 59   
             "ejb-proxy-description",
 60   
             serviceId,
 61   
             serviceInterface.getName(),
 62   
             jndiName);
 63   
     }
 64   
 
 65  1
     public static String unableToLookup(String name, Context context)
 66   
     {
 67  1
         return _formatter.format("unable-to-lookup", name, context);
 68   
     }
 69   
 
 70  0
     public static String noObject(String name, Class expectedType)
 71   
     {
 72  0
         return _formatter.format("no-object", name, expectedType);
 73   
     }
 74   
 
 75  0
     public static String wrongType(String name, Object object, Class expectedType)
 76   
     {
 77  0
         return _formatter.format("wrong-type", name, object, expectedType);
 78   
     }
 79   
 
 80  0
     public static String coordinatorLocked(String methodName)
 81   
     {
 82  0
         return _formatter.format("coordinator-locked", methodName);
 83   
     }
 84   
 }