public HiveShellContainer evaluateStatement ( List < ? extends Script > scripts , Object target , TemporaryFolder temporaryFolder , Statement base ) throws Throwable { container = null ; FileUtil . setPermission ( temporaryFolder . getRoot ( ) , FsPermission . getDirDefault ( ) ) ; try { LOGGER . info ( "Setting up {} in {}" , getName ( ) , temporaryFolder . getRoot ( ) . getAbsolutePath ( ) ) ; container = createHiveServerContainer ( scripts , target , temporaryFolder ) ; base . evaluate ( ) ; return container ; } finally { tearDown ( ) ; } }
Drives the unit test .