/** * Define which groups will be included from this run. * * @param groups A list of group names separated by a comma. */ public void setGroups(String groups) { m_includedGroups = Utils.split(groups, ","); }
/** * Define which groups will be excluded from this run. * * @param groups A list of group names separated by a comma. */ public void setExcludedGroups(String groups) { m_excludedGroups = Utils.split(groups, ","); }
/** * Define which groups will be included from this run. * * @param groups A list of group names separated by a comma. */ public void setGroups(String groups) { m_includedGroups = Utils.split(groups, ","); }
/** * Define which groups will be excluded from this run. * * @param groups A list of group names separated by a comma. */ public void setExcludedGroups(String groups) { m_excludedGroups = Utils.split(groups, ","); }
private static String[] getTestClasspath() { if (null != testClassPaths) { return testClassPaths; } String testClasspath = System.getProperty(TestNG.TEST_CLASSPATH); if (null == testClasspath) { return null; } String[] classpathFragments= Utils.split(testClasspath, File.pathSeparator); testClassPaths = new String[classpathFragments.length]; for(int i= 0; i < classpathFragments.length; i++) { String path; if(classpathFragments[i].toLowerCase().endsWith(".jar") || classpathFragments[i].toLowerCase().endsWith(".zip")) { path= classpathFragments[i] + "!/"; } else { if(classpathFragments[i].endsWith(File.separator)) { path= classpathFragments[i]; } else { path= classpathFragments[i] + "/"; } } testClassPaths[i]= path.replace('\\', '/'); } return testClassPaths; }
private static String[] getTestClasspath() { if (null != testClassPaths) { return testClassPaths; } String testClasspath = RuntimeBehavior.getTestClasspath(); if (null == testClasspath) { return null; } String[] classpathFragments = Utils.split(testClasspath, File.pathSeparator); testClassPaths = new String[classpathFragments.length]; for (int i = 0; i < classpathFragments.length; i++) { String path; if (classpathFragments[i].toLowerCase().endsWith(".jar") || classpathFragments[i].toLowerCase().endsWith(".zip")) { path = classpathFragments[i] + "!/"; } else { if (classpathFragments[i].endsWith(File.separator)) { path = classpathFragments[i]; } else { path = classpathFragments[i] + "/"; } } testClassPaths[i] = path.replace('\\', '/'); } return testClassPaths; }
public static String[] split(final String string, final String sep) { return org.testng.internal.Utils.split(string, sep); }