StatsDatabaseCheck implements IPentahoSystemListener { protected String getJobFileFullPath() { String systemSolutionfolder = PentahoSystem.getApplicationContext().getSolutionPath( "system" ); return systemSolutionfolder + "/" + getJobFileName(); }  boolean startup( final IPentahoSession session ); void shutdown(); String getJobFileName(); void setJobFileName( String jobFileName );  }
@Test public void testGetJobFileFullPath() throws Exception { when( appContext.getSolutionPath( "system" ) ).thenReturn( TestResourceLocation.TEST_RESOURCES + "/FileOutputResourceTest/system" ); statsDatabaseCheck.setJobFileName( "HelloWorld.kjb" ); statsDatabaseCheck.getJobFileFullPath(); assertEquals( TestResourceLocation.TEST_RESOURCES + "/FileOutputResourceTest/system/HelloWorld.kjb", statsDatabaseCheck.getJobFileFullPath() ); }