Messages extends MessagesBase { public String getCouldNotInvokeActionLocally( final String actionIdentified, final Map params ) { return getErrorString( "ActionInvoker.ERROR_0012_COULD_NOT_INVOKE_ACTION_LOCALLY", actionIdentified, StringUtil.getMapAsPrettyString( params ) ); } private  Messages(); static Messages getInstance(); String getRunningInBackgroundLocally( final String actionIdentifier, final Map params ); String getRunningInBackgroundRemotely( final String actionIdentifier, final Map params ); String getRunningInBgLocallySuccess( final String actionIdentified, final Map params ); String getPostingToResource( final String actionIdentifier, final String actionParams ); String getResourceResponded( final String url, final int responseCode ); String getNoEeLicense(); String getCantInvokeNullAction(); String getCantInvokeActionWithNullMap(); String getRemoteEndpointFailure( final String url, final Map params ); String getMapNullCantReturnSp(); String getMissingParamsCantReturnSp( final String paramList, final Map params ); String getActionFailedToExecute( final String actionIdentifier ); String getSkipRemovingOutputFile( final String fileName ); String getCannotGetRepoFile( final String fileName, final String msg ); String getCouldNotConvertContentToMap( final String content ); String getCouldNotInvokeActionLocally( final String actionIdentified, final Map params ); String getCouldNotInvokeActionLocallyUnexpected( final String actionIdentified, final String params ); String getUnexpectedStatusCode( final int statusCode );  }
@Test public void testGetCouldNotInvokeActionLocally() { final Map<String, String> params = new HashMap<String, String>(); params.put( "key1", "val1" ); params.put( "key2", "val2" ); Assert.assertEquals( "ActionInvoker.ERROR_0012 - Could not invoke action \"foo\" locally: Map = " + NL + "{" + NL + " key1 = val1 java.lang.String" + NL + " key2 = val2 java.lang.String" + NL + "} java.util.HashMap" + NL, messages.getCouldNotInvokeActionLocally( "foo", params ) ); }