private void setupFile ( ) { if ( ! new File ( directory ) . exists ( ) && ! new File ( directory ) . mkdirs ( ) ) { try { throw new IOException ( "Unable to create output directory" ) ; } catch ( IOException e ) { log . info ( e ) ; } } if ( ! file . exists ( ) ) { try { if ( ! file . createNewFile ( ) ) { throw new IOException ( "Unable to create output file" ) ; } } catch ( IOException e ) { log . error ( e ) ; } } }
Creates the directory and file to hold the test output file