question: protected static void assureResultsDirectoryExists ( String resultsDirectory ) { File dir = new File ( resultsDirectory ) ; if ( ! dir . exists ( ) ) { RuntimeSingleton . info ( "Template results directory does not exist" ) ; if ( dir . mkdirs ( ) ) { RuntimeSingleton . info ( "Created template results directory" ) ; } else { String errMsg = "Unable to create template results directory" ; RuntimeSingleton . warn ( errMsg ) ; fail ( errMsg ) ; } } }
target:  Assures that the results directory exists.  If the results directory cannot be created, fails the test.