Coverage Report - org.apache.tapestry5.corelib.internal.InternalMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
InternalMessages
50%
4/8
N/A
1
 
 1  
 // Copyright 2006, 2007 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.tapestry5.corelib.internal;
 16  
 
 17  
 import org.apache.tapestry5.ioc.Messages;
 18  
 import org.apache.tapestry5.ioc.internal.util.MessagesImpl;
 19  
 import org.apache.tapestry5.ioc.services.ClassFabUtils;
 20  
 
 21  0
 public final class InternalMessages
 22  
 {
 23  2
     private static final Messages MESSAGES = MessagesImpl.forClass(InternalMessages.class);
 24  
 
 25  
     public static String componentActionNotSerializable(String componentId, Throwable cause)
 26  
     {
 27  0
         return MESSAGES.format("component-action-not-serializable", componentId, cause);
 28  
     }
 29  
 
 30  
     public static String encloseErrorsInForm()
 31  
     {
 32  0
         return MESSAGES.get("enclose-errors-in-form");
 33  
     }
 34  
 
 35  
     public static String failureInstantiatingObject(Class objectType, String componentId, Throwable cause)
 36  
     {
 37  2
         return MESSAGES.format("failure-instantitating-object", ClassFabUtils
 38  
                 .toJavaClassName(objectType), componentId, cause);
 39  
     }
 40  
 
 41  
     public static String conflictingEncodingType(String existing, String conflicting)
 42  
     {
 43  2
         return MESSAGES.format("conflicting-encoding-type", existing, conflicting);
 44  
     }
 45  
 
 46  
     public static String toClientShouldReturnString()
 47  
     {
 48  0
         return MESSAGES.format("to-client-should-return-string");
 49  
     }
 50  
 
 51  
     public static String formFieldOutsideForm(String fieldName)
 52  
     {
 53  2
         return MESSAGES.format("form-field-outside-form", fieldName);
 54  
     }
 55  
 }