Messages extends MessagesBase { public String getPostingToResource( final String actionIdentifier, final String actionParams ) { return getString( "ActionInvoker.INFO_0003_POSTING_TO_RESOURCE", actionIdentifier, actionParams ); } 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 testGetPostingToResource() { final String params = "{\"key1\" : \"var1\", \"key2\" : \"var2\", \"key3\" : \"var3\"}"; Assert.assertEquals( "POSTing to resource \"foo\": " + params, messages.getPostingToResource( "foo", params ) ); }