XactionUtil { public static String execute( String returnContentType, RepositoryFile file, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, IPentahoSession userSession, IMimeTypeListener mimeTypeListener ) throws Exception { if ( ( returnContentType != null ) && ( returnContentType.equals( MediaType.APPLICATION_XML ) ) ) { return executeXml( file, httpServletRequest, httpServletResponse, userSession ); } return executeHtml( file, httpServletRequest, httpServletResponse, userSession, mimeTypeListener ); }  @SuppressWarnings ( "rawtypes" ) static void createOutputFileName( RepositoryFile file, IOutputHandler outputHandler ); static OutputStream getOutputStream( HttpServletResponse response, boolean doMessages ); static void setupOutputHandler( HttpOutputHandler outputHandler, IParameterProvider requestParameters ); static HttpOutputHandler createOutputHandler( HttpServletResponse response, OutputStream outputStream ); static String postExecute( IRuntimeContext runtime, boolean debugMessages, boolean doWrapper,
                                    IOutputHandler outputHandler, Map<String, IParameterProvider> parameterProviders,
                                    HttpServletRequest request,
                                    HttpServletResponse response, List<?> messages, boolean deleteGeneratedFiles ); @SuppressWarnings ( { "unchecked", "rawtypes" } ) static String executeHtml( RepositoryFile file, HttpServletRequest httpServletRequest,
                                    HttpServletResponse httpServletResponse, IPentahoSession userSession,
                                    IMimeTypeListener mimeTypeListener ); @SuppressWarnings ( { "unchecked", "rawtypes" } ) static String executeScheduleUi( RepositoryFile file, HttpServletRequest httpServletRequest,
                                          HttpServletResponse httpServletResponse, IPentahoSession userSession,
                                          IMimeTypeListener mimeTypeListener ); @SuppressWarnings ( { "unchecked", "rawtypes" } ) static String executeXml( RepositoryFile file, HttpServletRequest httpServletRequest,
                                   HttpServletResponse httpServletResponse, IPentahoSession userSession ); static String execute( String returnContentType, RepositoryFile file, HttpServletRequest httpServletRequest,
                                HttpServletResponse httpServletResponse, IPentahoSession userSession,
                                IMimeTypeListener mimeTypeListener ); @SuppressWarnings ( { "unchecked", "rawtypes" } ) static String doParameter( final RepositoryFile file, IParameterProvider parameterProvider,
                                    final IPentahoSession userSession );  }
@Test public void executeXActionSequence() throws Exception { XactionUtil.execute( MediaType.TEXT_HTML, xactionFile, httpServletRequest, httpServletResponse, userSession, mimeTypeListener ); verify( repository, times( 1 ) ).deleteFile( anyString(), anyBoolean(), anyString() ); }