private RunFailure getRunFailure ( RootMethodRunResult runResult ) { if ( runResult == null || runResult . getRunFailures ( ) . size ( ) == 0 ) { return null ; // no failure } // multiple run failures in one test method are not supported yet return runResult . getRunFailures ( ) . get ( 0 ) ; }
returns null if no failure