Clover coverage report - Code Coverage for tapestry release 4.0.1
Coverage timestamp: Fri Mar 31 2006 09:12:14 EST
file stats: LOC: 59   Methods: 6
NCLOC: 33   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
SpecMessages.java - 83.3% 83.3% 83.3%
coverage 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.spec;
 16   
 17    import org.apache.hivemind.HiveMind;
 18    import org.apache.hivemind.impl.MessageFormatter;
 19   
 20    /**
 21    * @author Howard M. Lewis Ship
 22    * @since 4.0
 23    */
 24    class SpecMessages
 25    {
 26    private static final MessageFormatter _formatter = new MessageFormatter(SpecMessages.class);
 27   
 28  4 static String claimedProperty(String propertyName, Object existing)
 29    {
 30  4 return _formatter.format("claimed-property", propertyName, HiveMind
 31    .getLocationString(existing));
 32    }
 33   
 34  4 static String duplicateAsset(String name, IAssetSpecification previousAsset)
 35    {
 36  4 return _formatter
 37    .format("duplicate-asset", name, HiveMind.getLocationString(previousAsset));
 38    }
 39   
 40  4 static String duplicateParameter(String name, IParameterSpecification existing)
 41    {
 42  4 return _formatter.format("duplicate-parameter", name, HiveMind.getLocationString(existing));
 43    }
 44   
 45  4 static String duplicateBean(String name, IBeanSpecification spec)
 46    {
 47  4 return _formatter.format("duplicate-bean", name, HiveMind.getLocationString(spec));
 48    }
 49   
 50  0 static String duplicateProperty(String name, IPropertySpecification existing)
 51    {
 52  0 return _formatter.format("duplicate-property", name, HiveMind.getLocationString(existing));
 53    }
 54   
 55  4 static String duplicateComponent(String name, IContainedComponent existing)
 56    {
 57  4 return _formatter.format("duplicate-component", name, HiveMind.getLocationString(existing));
 58    }
 59    }