private void processRunStartedTag(String identifier){
  Pattern numTestsPattern=Pattern.compile("Running (\\d+) test[s]? from .*");
  Matcher numTests=numTestsPattern.matcher(identifier);
  if (numTests.find()) {
    try {
      mNumTestsExpected=Integer.parseInt(numTests.group(1));
    }
 catch (    NumberFormatException e) {
      Log.e(LOG_TAG,"Unable to determine number of tests expected, received: " + numTests.group(1));
    }
  }
  if (mNumTestsExpected > 0) {
    reportTestRunStarted();
    mNumTestsRun=0;
    mTestRunInProgress=true;
  }
}

private void processRunStartedTag ( String identifier ) { Pattern numTestsPattern = Pattern . compile ( "Running (\\d+) test[s]? from .*" ) ; Matcher numTests = numTestsPattern . matcher ( identifier ) ; if ( numTests . find ( ) ) { try { mNumTestsExpected = Integer . parseInt ( numTests . group ( 1 ) ) ; } catch ( NumberFormatException e ) { Log . e ( LOG_TAG , "Unable to determine number of tests expected, received: " + numTests . group ( 1 ) ) ; } } if ( mNumTestsExpected > 0 ) { reportTestRunStarted ( ) ; mNumTestsRun = 0 ; mTestRunInProgress = true ; } }
parses and stores the test identifier ( class and test name ) .
