Clover coverage report - Code Coverage for hivemind release 1.0
Coverage timestamp: Wed Sep 22 2004 08:05:25 EDT
file stats: LOC: 51   Methods: 4
NCLOC: 23   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
HiveMindMessages.java - 75% 75% 75%
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;
 16   
 
 17   
 import org.apache.hivemind.impl.MessageFormatter;
 18   
 
 19   
 /**
 20   
  * Used to format general-purpose messages used in code within HiveMind.
 21   
  *
 22   
  * @author Howard Lewis Ship
 23   
  */
 24   
 public final class HiveMindMessages
 25   
 {
 26   
     private static final MessageFormatter _formatter =
 27   
         new MessageFormatter(HiveMindMessages.class, "HiveMindStrings");
 28   
 
 29  0
     public static String unimplementedMethod(Object instance, String methodName)
 30   
     {
 31  0
         return _formatter.format("unimplemented-method", instance.getClass().getName(), methodName);
 32   
     }
 33   
 
 34  6
     public static String registryShutdown()
 35   
     {
 36  6
         return _formatter.getMessage("registry-shutdown");
 37   
     }
 38   
 
 39   
 
 40  4
     public static String unknownLocation()
 41   
     {
 42  4
         return _formatter.getMessage("unknown-location");
 43   
     }
 44   
 
 45  1
     public static String nullParameterInvalid(String name)
 46   
     {
 47  1
         return _formatter.format("null-parameter-invalid", name);
 48   
     }
 49   
 
 50   
 }
 51