Clover coverage report - Code Coverage for tapestry-annotations release 4.0-beta-2
Coverage timestamp: Sat Jul 9 2005 22:06:49 EDT
file stats: LOC: 94   Methods: 11
NCLOC: 60   Classes: 1
30 day Evaluation License registered to hlship@comcast.net Your 30 day evaluation period has expired. Please visit http://www.cenqua.com to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
AnnotationMessages.java - 100% 100% 100%
coverage
 1    // Copyright 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.annotations;
 16   
 17    import java.lang.annotation.Annotation;
 18    import java.lang.reflect.Method;
 19   
 20    import org.apache.hivemind.impl.MessageFormatter;
 21    import org.apache.hivemind.service.ClassFabUtils;
 22   
 23    /**
 24    * @author Howard M. Lewis Ship
 25    * @since 4.0
 26    */
 27   
 28    class AnnotationMessages
 29    {
 30    private static final MessageFormatter _formatter = new MessageFormatter(
 31    AnnotationMessages.class, "AnnotationStrings");
 32   
 33  1 public static String noParametersExpected(Method m)
 34    {
 35  1 return _formatter.format("no-parameters-expected", m);
 36    }
 37   
 38  1 public static String notAccessor(Method method)
 39    {
 40  1 return _formatter.format("no-accessor", method);
 41    }
 42   
 43  1 public static String voidAccessor(Method method)
 44    {
 45  1 return _formatter.format("void-accessor", method);
 46    }
 47   
 48  1 public static String nonVoidMutator(Method method)
 49    {
 50  1 return _formatter.format("non-void-mutator", method);
 51    }
 52   
 53  1 public static String wrongParameterCount(Method method)
 54    {
 55  1 return _formatter.format("wrong-parameter-count", method);
 56    }
 57   
 58  2 public static String failureProcessingAnnotation(Annotation annotation, Method method,
 59    Throwable cause)
 60    {
 61  2 return _formatter.format("failure-processing-annotation", annotation, method, cause);
 62    }
 63   
 64  2 public static String failureProcessingClassAnnotation(Annotation annotation, Class clazz,
 65    Throwable cause)
 66    {
 67  2 return _formatter.format(
 68    "failure-processing-class-annotation",
 69    annotation,
 70    clazz.getName(),
 71    cause);
 72    }
 73   
 74  1 public static String returnStringOnly(Class returnType)
 75    {
 76  1 return _formatter.format("return-string-only", ClassFabUtils.getJavaClassName(returnType));
 77    }
 78   
 79  6 public static String bindingWrongFormat(String binding)
 80    {
 81  6 return _formatter.format("binding-wrong-format", binding);
 82    }
 83   
 84  12 public static String methodAnnotation(Annotation annotation, Method method)
 85    {
 86  12 return _formatter.format("method-annotation", annotation, method);
 87    }
 88   
 89  8 public static String classAnnotation(Annotation annotation, Class clazz)
 90    {
 91  8 return _formatter.format("class-annotation", annotation, clazz.getName());
 92    }
 93   
 94    }