Coverage Report - org.mule.example.hello.LocaleMessage
 
Classes in this File Line Coverage Branch Coverage Complexity
LocaleMessage
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.example.hello;
 8  
 
 9  
 import org.mule.config.i18n.MessageFactory;
 10  
 
 11  
 /**
 12  
  * <code>LocaleMessage</code> is a convenience interface for retrieving
 13  
  * internationalised strings from resource bundles. The actual work is done by
 14  
  * the MessageFactory in core.
 15  
  */
 16  0
 public class LocaleMessage extends MessageFactory
 17  
 {
 18  0
     private static final LocaleMessage factory = new LocaleMessage();
 19  
     
 20  
     private static final String BUNDLE_PATH = "messages.hello-example-messages";
 21  
 
 22  
     public static String getGreetingPart2()
 23  
     {
 24  0
         return factory.getString(BUNDLE_PATH, 1);
 25  
     }
 26  
 
 27  
     public static String getGreetingPart1()
 28  
     {
 29  0
         return factory.getString(BUNDLE_PATH, 2);
 30  
     }
 31  
 
 32  
     public static String getPrompt()
 33  
     {
 34  0
         return factory.getString(BUNDLE_PATH, 3);
 35  
     }
 36  
 
 37  
     public static String getInvalidUserNameError()
 38  
     {
 39  0
         return factory.getString(BUNDLE_PATH, 4);
 40  
     }
 41  
 }