GatherStatsAction implements IAction { protected String getJobFileFullPath() { String systemSolutionfolder = PentahoSystem.getApplicationContext().getSolutionPath( "system" ); return systemSolutionfolder + "/" + getTransFileName(); }  Log getLogger(); void execute(); String getTransFileName(); void setTransFileName( String transFileName );  }
@Test public void testGetJobFileFullPath() throws Exception { when( appContext.getSolutionPath( "system" ) ).thenReturn( TestResourceLocation.TEST_RESOURCES + "/FileOutputResourceTest/system" ); gatherStatsAction.setTransFileName( "HelloWorld.ktr" ); String jobFileFullPath = gatherStatsAction.getJobFileFullPath(); assertEquals( TestResourceLocation.TEST_RESOURCES + "/FileOutputResourceTest/system/HelloWorld.ktr", jobFileFullPath ); }