Clover coverage report - Code Coverage for tapestry release 4.0-alpha-3
Coverage timestamp: Mon May 16 2005 09:05:49 EDT
file stats: LOC: 112   Methods: 14
NCLOC: 74   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
PageloadMessages.java - 42.9% 42.9% 42.9%
coverage 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.tapestry.pageload;
 16   
 
 17   
 import org.apache.hivemind.impl.MessageFormatter;
 18   
 import org.apache.tapestry.IComponent;
 19   
 
 20   
 /**
 21   
  * Messages for the pageload package
 22   
  * 
 23   
  * @author Howard Lewis Ship
 24   
  * @since 4.0
 25   
  */
 26   
 class PageloadMessages
 27   
 {
 28   
     protected static MessageFormatter _formatter = new MessageFormatter(PageloadMessages.class,
 29   
             "PageloadStrings");
 30   
 
 31  0
     static String parameterMustHaveNoDefaultValue(IComponent component, String name)
 32   
     {
 33  0
         return _formatter.format(
 34   
                 "parameter-must-have-no-default-value",
 35   
                 component.getExtendedId(),
 36   
                 name);
 37   
     }
 38   
 
 39  0
     static String unableToInitializeProperty(String propertyName, IComponent component,
 40   
             Throwable cause)
 41   
     {
 42  0
         return _formatter.format("unable-to-initialize-property", propertyName, component, cause);
 43   
     }
 44   
 
 45  0
     static String requiredParameterNotBound(String name, IComponent component)
 46   
     {
 47  0
         return _formatter.format("required-parameter-not-bound", name, component.getExtendedId());
 48   
     }
 49   
 
 50  1
     static String inheritInformalInvalidComponentFormalOnly(IComponent component)
 51   
     {
 52  1
         return _formatter.format("inherit-informal-invalid-component-formal-only", component
 53   
                 .getExtendedId());
 54   
     }
 55   
 
 56  1
     static String inheritInformalInvalidContainerFormalOnly(IComponent container,
 57   
             IComponent component)
 58   
     {
 59  1
         return _formatter.format("inherit-informal-invalid-container-formal-only", container
 60   
                 .getExtendedId(), component.getExtendedId());
 61   
     }
 62   
 
 63  0
     static String formalParametersOnly(IComponent component, String parameterName)
 64   
     {
 65  0
         return _formatter
 66   
                 .format("formal-parameters-only", component.getExtendedId(), parameterName);
 67   
     }
 68   
 
 69  0
     static String unableToInstantiateComponent(IComponent container, Throwable cause)
 70   
     {
 71  0
         return _formatter.format(
 72   
                 "unable-to-instantiate-component",
 73   
                 container.getExtendedId(),
 74   
                 cause);
 75   
     }
 76   
 
 77  1
     static String classNotComponent(Class componentClass)
 78   
     {
 79  1
         return _formatter.format("class-not-component", componentClass.getName());
 80   
     }
 81   
 
 82  0
     static String unableToInstantiate(String className, Throwable cause)
 83   
     {
 84  0
         return _formatter.format("unable-to-instantiate", className, cause);
 85   
     }
 86   
 
 87  0
     static String pageNotAllowed(String componentId)
 88   
     {
 89  0
         return _formatter.format("page-not-allowed", componentId);
 90   
     }
 91   
 
 92  1
     static String classNotPage(Class componentClass)
 93   
     {
 94  1
         return _formatter.format("class-not-page", componentClass.getName());
 95   
     }
 96   
 
 97  379
     static String defaultParameterName(String name)
 98   
     {
 99  379
         return _formatter.format("default-parameter-name", name);
 100   
     }
 101   
 
 102  0
     static String initializerName(String propertyName)
 103   
     {
 104  0
         return _formatter.format("initializer-name", propertyName);
 105   
     }
 106   
 
 107  563
     static String parameterName(String name)
 108   
     {
 109  563
         return _formatter.format("parameter-name", name);
 110   
     }
 111   
 
 112   
 }