@Parameters(name="{0}") public static Collection<Object[]> data(){
  String pathToSearch=System.getenv("DROIDSAFE_SRC_HOME") + "/" + Config.ANDROID_APP_DIR_REL+ "/";
  String dirToSearch=System.getProperty("dir-to-search");
  if (dirToSearch != null)   pathToSearch+=dirToSearch;
  File appSearchDir=new File(pathToSearch);
  if (!appSearchDir.exists()) {
    logger.error("Could not open app search directory",appSearchDir);
    System.exit(1);
  }
  findApps(appSearchDir);
  Collections.sort(appDirPaths);
  for (  String appDirPath : appDirPaths) {
    listOfParameterLists.add(new Object[]{appDirPath});
  }
  return listOfParameterLists;
}

@ Parameters ( name = "{0}" ) public static Collection < Object [ ] > data ( ) { String pathToSearch = System . getenv ( "DROIDSAFE_SRC_HOME" ) + "/" + Config . ANDROID_APP_DIR_REL + "/" ; String dirToSearch = System . getProperty ( "dir-to-search" ) ; if ( dirToSearch != null ) pathToSearch += dirToSearch ; File appSearchDir = new File ( pathToSearch ) ; if ( ! appSearchDir . exists ( ) ) { logger . error ( "Could not open app search directory" , appSearchDir ) ; System . exit ( 1 ) ; } findApps ( appSearchDir ) ; Collections . sort ( appDirPaths ) ; for ( String appDirPath : appDirPaths ) { listOfParameterLists . add ( new Object [ ] { appDirPath } ) ; } return listOfParameterLists ; }
finds all the apps that we want to test
