Clover coverage report - Code Coverage for hivemind release 1.0-rc-1
Coverage timestamp: Wed Aug 25 2004 13:06:02 EDT
file stats: LOC: 57   Methods: 4
NCLOC: 31   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
ServiceModelMessages.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.impl.servicemodel;
 16   
 
 17   
 import org.apache.hivemind.impl.MessageFormatter;
 18   
 import org.apache.hivemind.internal.ServicePoint;
 19   
 
 20   
 /**
 21   
  * Messages for the impl.servicemodel package.
 22   
  *
 23   
  * @author Howard Lewis Ship
 24   
  */
 25   
 final class ServiceModelMessages
 26   
 {
 27   
     private static final MessageFormatter _formatter =
 28   
         new MessageFormatter(ServiceModelMessages.class, "ServiceModelStrings");
 29   
 
 30  0
     public static String factoryReturnedNull(ServicePoint point)
 31   
     {
 32  0
         return _formatter.format("factory-returned-null", point.getExtensionPointId());
 33   
     }
 34   
 
 35  0
     public static String factoryWrongInterface(
 36   
         ServicePoint point,
 37   
         Object result,
 38   
         Class serviceType)
 39   
     {
 40  0
         return _formatter.format(
 41   
             "factory-wrong-interface",
 42   
             point.getExtensionPointId(),
 43   
             result,
 44   
             serviceType.getName());
 45   
     }
 46   
 
 47  1
     public static String registryCleanupIgnored(ServicePoint point)
 48   
     {
 49  1
         return _formatter.format("registry-cleanup-ignored", point.getExtensionPointId());
 50   
     }
 51   
 
 52  3
     public static String unableToConstructService(ServicePoint point, Throwable cause)
 53   
     {
 54  3
         return _formatter.format("unable-to-construct-service", point.getExtensionPointId(), cause);
 55   
     }
 56   
 }
 57