*The SuiteMethodBuilder checks the class passed to it to see if it contains a static method named 'suite', if so, it will return an instance of SuiteMethod (which extends from FlexUnit1ClassRunner). As you may have noticed, this formatting for a suite class is a FlexUnit .09 convention, this builder is not for FlexUnit 4 suite classes they are part of the FlexUnit4Builder.
override public function runnerForClass( testClass:Class ):IRunner { if ( hasSuiteMethod( testClass ) ) return new SuiteMethod( testClass ); return null; }
public function hasSuiteMethod( testClass:Class ):Boolean { var klass:Klass = new Klass( testClass ); if ( klass.getMethod( "suite" ) ) { return true; } return false; }