Clover coverage report - Code Coverage for hivemind-lib release 1.1-alpha-1
Coverage timestamp: Tue Jan 18 2005 07:56:07 EST
file stats: LOC: 79   Methods: 5
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
PipelineMessages.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.lib.pipeline;
 16   
 
 17   
 import org.apache.hivemind.HiveMind;
 18   
 import org.apache.hivemind.Location;
 19   
 import org.apache.hivemind.impl.MessageFormatter;
 20   
 import org.apache.hivemind.service.MethodSignature;
 21   
 
 22   
 /**
 23   
  * Messages for the lib.pipeline package.
 24   
  *
 25   
  * @author Howard Lewis Ship
 26   
  */
 27   
 final class PipelineMessages
 28   
 {
 29   
     private static MessageFormatter _formatter =
 30   
         new MessageFormatter(PipelineMessages.class, "PipelineStrings");
 31   
 
 32  9
     public static String bridgeInstanceDescription(String serviceId, Class serviceInterface)
 33   
     {
 34  9
         return _formatter.format(
 35   
             "bridge-instance-description",
 36   
             serviceId,
 37   
             serviceInterface.getName());
 38   
     }
 39   
 
 40  1
     public static String extraFilterMethod(
 41   
         MethodSignature ms,
 42   
         Class filterInterface,
 43   
         Class serviceInterface,
 44   
         String serviceId)
 45   
     {
 46  1
         return _formatter.format(
 47   
             "extra-filter-method",
 48   
             new Object[] { ms, filterInterface.getName(), serviceInterface.getName(), serviceId });
 49   
     }
 50   
 
 51  1
     public static String unmatchedServiceMethod(MethodSignature ms, Class filterInterface)
 52   
     {
 53  1
         return _formatter.format("unmatched-service-method", ms, filterInterface.getName());
 54   
     }
 55   
 
 56  1
     public static String duplicateTerminator(
 57   
         Object terminator,
 58   
         String serviceId,
 59   
         Object existingTerminator,
 60   
         Location existingLocation)
 61   
     {
 62  1
         return _formatter.format(
 63   
             "duplicate-terminator",
 64   
             new Object[] {
 65   
                 terminator,
 66   
                 serviceId,
 67   
                 existingTerminator,
 68   
                 HiveMind.getLocationString(existingLocation)});
 69   
     }
 70   
 
 71  2
     public static String incorrectInterface(Object instance, Class interfaceType, String serviceId)
 72   
     {
 73  2
         return _formatter.format(
 74   
             "incorrect-interface",
 75   
             instance,
 76   
             interfaceType.getName(),
 77   
             serviceId);
 78   
     }
 79   
 }