001package edu.pdx.cs410J.airlineweb; 002 003/** 004 * Class for formatting messages on the server side. This is mainly to enable 005 * test methods that validate that the server returned expected strings. 006 */ 007public class Messages 008{ 009 public static String missingRequiredParameter( String parameterName ) 010 { 011 return String.format("The required parameter \"%s\" is missing", parameterName); 012 } 013 014 public static String definedWordAs(String word, String definition ) 015 { 016 return String.format( "Defined %s as %s", word, definition ); 017 } 018 019 public static String allDictionaryEntriesDeleted() { 020 return "All dictionary entries have been deleted"; 021 } 022 023}