/external/testng/src/main/java/org/testng/junit/ |
D | JUnitTestClass.java | 5 import org.testng.ITestNGMethod; 18 private List<ITestNGMethod> m_testMethods = Lists.newArrayList(); 19 private List<ITestNGMethod> m_beforeClass = Lists.newArrayList(); 20 private List<ITestNGMethod> m_afterClass = Lists.newArrayList(); 21 private List<ITestNGMethod> m_beforeTest = Lists.newArrayList(); 22 private List<ITestNGMethod> m_afterTest = Lists.newArrayList(); 33 List<ITestNGMethod> getTestMethodList() { in getTestMethodList() 104 public ITestNGMethod[] getTestMethods() { in getTestMethods() 105 return m_testMethods.toArray(new ITestNGMethod[m_testMethods.size()]); in getTestMethods() 112 public ITestNGMethod[] getBeforeTestMethods() { in getBeforeTestMethods() [all …]
|
D | JUnitMethodFinder.java | 4 import org.testng.ITestNGMethod; 49 public ITestNGMethod[] getTestMethods(Class cls, XmlTest xmlTest) { in getTestMethods() 50 ITestNGMethod[] result = in getTestMethods() 68 private ITestNGMethod[] privateFindTestMethods(INameFilter filter, Class cls) { in privateFindTestMethods() 69 List<ITestNGMethod> vResult = Lists.newArrayList(); in privateFindTestMethods() 84 ITestNGMethod m = new TestNGMethod(/* allMethods[i].getDeclaringClass(), */ allMethod, in privateFindTestMethods() 99 return vResult.toArray(new ITestNGMethod[vResult.size()]); in privateFindTestMethods() 131 public ITestNGMethod[] getBeforeTestMethods(Class cls) { in getBeforeTestMethods() 132 ITestNGMethod[] result = privateFindTestMethods(new INameFilter() { in getBeforeTestMethods() 143 public ITestNGMethod[] getAfterTestMethods(Class cls) { in getAfterTestMethods() [all …]
|
/external/testng/src/main/java/org/testng/internal/ |
D | MethodInheritance.java | 7 import org.testng.ITestNGMethod; 15 private static List<ITestNGMethod> findMethodListSuperClass(Map<Class, List<ITestNGMethod>> map, in findMethodListSuperClass() 16 Class< ? extends ITestNGMethod> methodClass) in findMethodListSuperClass() 18 for (Map.Entry<Class, List<ITestNGMethod>> entry : map.entrySet()) { in findMethodListSuperClass() 29 private static Class findSubClass(Map<Class, List<ITestNGMethod>> map, in findSubClass() 30 Class< ? extends ITestNGMethod> methodClass) in findSubClass() 51 public static void fixMethodInheritance(ITestNGMethod[] methods, boolean before) { in fixMethodInheritance() 53 Map<Class, List<ITestNGMethod>> map = Maps.newHashMap(); in fixMethodInheritance() 58 for (ITestNGMethod method : methods) { in fixMethodInheritance() 59 Class< ? extends ITestNGMethod> methodClass = method.getRealClass(); in fixMethodInheritance() [all …]
|
D | NoOpTestClass.java | 5 import org.testng.ITestNGMethod; 15 protected ITestNGMethod[] m_beforeClassMethods= null; 16 protected ITestNGMethod[] m_beforeTestMethods= null; 17 protected ITestNGMethod[] m_testMethods= null; 18 protected ITestNGMethod[] m_afterClassMethods= null; 19 protected ITestNGMethod[] m_afterTestMethods= null; 20 protected ITestNGMethod[] m_beforeSuiteMethods= null; 21 protected ITestNGMethod[] m_afterSuiteMethods= null; 22 protected ITestNGMethod[] m_beforeTestConfMethods= null; 23 protected ITestNGMethod[] m_afterTestConfMethods= null; [all …]
|
D | MethodHelper.java | 13 import org.testng.ITestNGMethod; 31 private static final Map<ITestNGMethod[], Graph<ITestNGMethod>> GRAPH_CACHE = 47 public static ITestNGMethod[] collectAndOrderMethods(List<ITestNGMethod> methods, in collectAndOrderMethods() 49 boolean unique, List<ITestNGMethod> outExcludedMethods) in collectAndOrderMethods() 51 List<ITestNGMethod> includedMethods = Lists.newArrayList(); in collectAndOrderMethods() 52 MethodGroupsHelper.collectMethodsByGroup(methods.toArray(new ITestNGMethod[methods.size()]), in collectAndOrderMethods() 60 return sortMethods(forTests, includedMethods, finder).toArray(new ITestNGMethod[]{}); in collectAndOrderMethods() 69 protected static ITestNGMethod[] findDependedUponMethods(ITestNGMethod m, in findDependedUponMethods() 70 ITestNGMethod[] methods) in findDependedUponMethods() 73 List<ITestNGMethod> vResult = Lists.newArrayList(); in findDependedUponMethods() [all …]
|
D | MethodGroupsHelper.java | 12 import org.testng.ITestNGMethod; 38 static void collectMethodsByGroup(ITestNGMethod[] methods, in collectMethodsByGroup() 40 List<ITestNGMethod> outIncludedMethods, in collectMethodsByGroup() 41 List<ITestNGMethod> outExcludedMethods, in collectMethodsByGroup() 45 for (ITestNGMethod tm : methods) { in collectMethodsByGroup() 81 …RunInfo runInfo, ITestNGMethod tm, boolean forTests, boolean unique, List<ITestNGMethod> outInclud… in includeMethod() 107 private static boolean isMethodAlreadyPresent(List<ITestNGMethod> result, in isMethodAlreadyPresent() 108 ITestNGMethod tm) { in isMethodAlreadyPresent() 109 for (ITestNGMethod m : result) { in isMethodAlreadyPresent() 128 …public static Map<String, List<ITestNGMethod>> findGroupsMethods(Collection<ITestClass> classes, b… in findGroupsMethods() [all …]
|
D | ConfigurationGroupMethods.java | 4 import org.testng.ITestNGMethod; 27 private final Map<String, List<ITestNGMethod>> m_beforeGroupsMethods; 30 private final Map<String, List<ITestNGMethod>> m_afterGroupsMethods; 33 private final ITestNGMethod[] m_allMethods; 36 private Map<String, List<ITestNGMethod>> m_afterGroupsMap= null; 38 public ConfigurationGroupMethods(ITestNGMethod[] allMethods, in ConfigurationGroupMethods() 39 Map<String, List<ITestNGMethod>> beforeGroupsMethods, in ConfigurationGroupMethods() 40 Map<String, List<ITestNGMethod>> afterGroupsMethods) in ConfigurationGroupMethods() 47 public Map<String, List<ITestNGMethod>> getBeforeGroupsMethods() { in getBeforeGroupsMethods() 51 public Map<String, List<ITestNGMethod>> getAfterGroupsMethods() { in getAfterGroupsMethods() [all …]
|
D | TestNGMethodFinder.java | 9 import org.testng.ITestNGMethod; 46 public ITestNGMethod[] getTestMethods(Class<?> clazz, XmlTest xmlTest) { in getTestMethods() 52 public ITestNGMethod[] getBeforeClassMethods(Class cls) { in getBeforeClassMethods() 57 public ITestNGMethod[] getAfterClassMethods(Class cls) { in getAfterClassMethods() 62 public ITestNGMethod[] getBeforeTestMethods(Class cls) { in getBeforeTestMethods() 67 public ITestNGMethod[] getAfterTestMethods(Class cls) { in getAfterTestMethods() 72 public ITestNGMethod[] getBeforeSuiteMethods(Class cls) { in getBeforeSuiteMethods() 77 public ITestNGMethod[] getAfterSuiteMethods(Class cls) { in getAfterSuiteMethods() 82 public ITestNGMethod[] getBeforeTestConfigurationMethods(Class clazz) { in getBeforeTestConfigurationMethods() 87 public ITestNGMethod[] getAfterTestConfigurationMethods(Class clazz) { in getAfterTestConfigurationMethods() [all …]
|
D | Invoker.java | 25 import org.testng.ITestNGMethod; 80 private Map<ITestNGMethod, Set<Object>> m_methodInvocationResults = Maps.newHashtable(); 84 …private static Predicate<ITestNGMethod, IClass> CAN_RUN_FROM_CLASS = new CanRunFromClassPredicate(… 86 private static final Predicate<ITestNGMethod, IClass> SAME_CLASS = new SameClassNamePredicate(); 97 private void setMethodInvocationFailure(ITestNGMethod method, Object instance) { in setMethodInvocationFailure() 136 ITestNGMethod[] allMethods, in invokeConfigurations() 147 ITestNGMethod currentTestMethod, in invokeConfigurations() 148 ITestNGMethod[] allMethods, in invokeConfigurations() 161 ITestNGMethod[] methods= filterMethods(testClass, allMethods, SAME_CLASS); in invokeConfigurations() 163 for(ITestNGMethod tm : methods) { in invokeConfigurations() [all …]
|
D | ConfigurationMethod.java | 8 import org.testng.ITestNGMethod; 124 private static ITestNGMethod[] createMethods(ITestNGMethod[] methods, IAnnotationFinder finder, in createMethods() 137 List<ITestNGMethod> result = Lists.newArrayList(); in createMethods() 138 for (ITestNGMethod method : methods) { in createMethods() 154 return result.toArray(new ITestNGMethod[result.size()]); in createMethods() 158 public static ITestNGMethod[] createSuiteConfigurationMethods(ITestNGMethod[] methods, in createSuiteConfigurationMethods() 174 public static ITestNGMethod[] createTestConfigurationMethods(ITestNGMethod[] methods, in createTestConfigurationMethods() 190 public static ITestNGMethod[] createClassConfigurationMethods(ITestNGMethod[] methods, in createClassConfigurationMethods() 206 public static ITestNGMethod[] createBeforeConfigurationMethods(ITestNGMethod[] methods, in createBeforeConfigurationMethods() 209 ITestNGMethod[] result = new ITestNGMethod[methods.length]; in createBeforeConfigurationMethods() [all …]
|
D | ITestResultNotifier.java | 8 import org.testng.ITestNGMethod; 21 Set<ITestResult> getPassedTests(ITestNGMethod tm); in getPassedTests() 23 Set<ITestResult> getFailedTests(ITestNGMethod tm); in getFailedTests() 25 Set<ITestResult> getSkippedTests(ITestNGMethod tm); in getSkippedTests() 27 void addPassedTest(ITestNGMethod tm, ITestResult tr); in addPassedTest() 29 void addSkippedTest(ITestNGMethod tm, ITestResult tr); in addSkippedTest() 31 void addFailedTest(ITestNGMethod tm, ITestResult tr); in addFailedTest() 33 void addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr); in addFailedButWithinSuccessPercentageTest()
|
D | TestMethodWorker.java | 8 import org.testng.ITestNGMethod; 32 public class TestMethodWorker implements IWorker<ITestNGMethod> { 75 ITestNGMethod tm = mi.getMethod(); in getTimeOut() 105 ITestNGMethod testMethod = testMthdInst.getMethod(); in run() 120 protected void invokeTestMethods(ITestNGMethod tm, Object instance, in invokeTestMethods() 156 ITestNGMethod[] classMethods= testClass.getBeforeClassMethods(); in invokeBeforeClassMethods() 204 ITestNGMethod[] afterClassMethods= testClass.getAfterClassMethods(); in invokeAfterClassMethods() 214 ITestNGMethod tm= mi.getMethod(); in invokeAfterClassMethods() 242 protected int indexOf(ITestNGMethod tm, ITestNGMethod[] allTestMethods) { in indexOf() 260 public List<ITestNGMethod> getTasks() in getTasks() [all …]
|
D | ResultMap.java | 4 import org.testng.ITestNGMethod; 20 private Map<ITestResult, ITestNGMethod> m_map = new ConcurrentHashMap<>(); 23 public void addResult(ITestResult result, ITestNGMethod method) { in addResult() 28 public Set<ITestResult> getResults(ITestNGMethod method) { in getResults() 31 for (Map.Entry<ITestResult, ITestNGMethod> entry : m_map.entrySet()) { in getResults() 41 public void removeResult(ITestNGMethod m) { in removeResult() 42 for (Entry<ITestResult, ITestNGMethod> entry : m_map.entrySet()) { in removeResult() 66 public Collection<ITestNGMethod> getAllMethods() { in getAllMethods()
|
D | TestNGMethod.java | 4 import org.testng.ITestNGMethod; 209 private ITestNGMethod[] clone(ITestNGMethod[] sources) { in clone() 210 ITestNGMethod[] clones= new ITestNGMethod[sources.length]; in clone() 219 public static final Comparator<ITestNGMethod> SORT_BY_CLASS = 220 new Comparator<ITestNGMethod>() { 223 public int compare(ITestNGMethod o1, ITestNGMethod o2) {
|
D | TestMethodWithDataProviderMethodWorker.java | 5 import org.testng.ITestNGMethod; 16 private ITestNGMethod m_testMethod; 22 private ITestNGMethod[] m_beforeMethods; 23 private ITestNGMethod[] m_afterMethods; 36 public TestMethodWithDataProviderMethodWorker(Invoker invoker, ITestNGMethod testMethod, in TestMethodWithDataProviderMethodWorker() 40 ITestNGMethod[] beforeMethods, ITestNGMethod[] afterMethods, in TestMethodWithDataProviderMethodWorker()
|
/external/testng/src/main/java/org/testng/ |
D | TestRunner.java | 68 implements ITestContext, ITestResultNotifier, IThreadWorkerFactory<ITestNGMethod> 97 private ITestNGMethod[] m_allTestMethods = new ITestNGMethod[0]; 123 private ITestNGMethod[] m_beforeSuiteMethods = {}; 124 private ITestNGMethod[] m_afterSuiteMethods = {}; 125 private ITestNGMethod[] m_beforeXmlTestMethods = {}; 126 private ITestNGMethod[] m_afterXmlTestMethods = {}; 127 private List<ITestNGMethod> m_excludedMethods = Lists.newArrayList(); 224 public ITestNGMethod[] getBeforeSuiteMethods() { in getBeforeSuiteMethods() 228 public ITestNGMethod[] getAfterSuiteMethods() { in getAfterSuiteMethods() 232 public ITestNGMethod[] getBeforeTestConfigurationMethods() { in getBeforeTestConfigurationMethods() [all …]
|
D | ITestClass.java | 57 ITestNGMethod[] getTestMethods(); in getTestMethods() 65 ITestNGMethod[] getBeforeTestMethods(); in getBeforeTestMethods() 73 ITestNGMethod[] getAfterTestMethods(); in getAfterTestMethods() 83 ITestNGMethod[] getBeforeClassMethods(); in getBeforeClassMethods() 91 ITestNGMethod[] getAfterClassMethods(); in getAfterClassMethods() 99 ITestNGMethod[] getBeforeSuiteMethods(); in getBeforeSuiteMethods() 107 ITestNGMethod[] getAfterSuiteMethods(); in getAfterSuiteMethods() 114 ITestNGMethod[] getBeforeTestConfigurationMethods(); in getBeforeTestConfigurationMethods() 122 ITestNGMethod[] getAfterTestConfigurationMethods(); in getAfterTestConfigurationMethods() 128 ITestNGMethod[] getBeforeGroupsMethods(); in getBeforeGroupsMethods() [all …]
|
D | ITestMethodFinder.java | 23 ITestNGMethod[] getTestMethods(Class<?> cls, XmlTest xmlTest); in getTestMethods() 29 ITestNGMethod[] getBeforeTestMethods(Class<?> cls); in getBeforeTestMethods() 35 ITestNGMethod[] getAfterTestMethods(Class<?> cls); in getAfterTestMethods() 42 ITestNGMethod[] getBeforeClassMethods(Class<?> cls); in getBeforeClassMethods() 49 ITestNGMethod[] getAfterClassMethods(Class<?> cls); in getAfterClassMethods() 55 ITestNGMethod[] getBeforeSuiteMethods(Class<?> cls); in getBeforeSuiteMethods() 61 ITestNGMethod[] getAfterSuiteMethods(Class<?> cls); in getAfterSuiteMethods() 63 ITestNGMethod[] getBeforeTestConfigurationMethods(Class<?> testClass); in getBeforeTestConfigurationMethods() 65 ITestNGMethod[] getAfterTestConfigurationMethods(Class<?> testClass); in getAfterTestConfigurationMethods() 67 ITestNGMethod[] getBeforeGroupsConfigurationMethods(Class<?> testClass); in getBeforeGroupsConfigurationMethods() [all …]
|
D | DependencyMap.java | 19 private ListMultiMap<String, ITestNGMethod> m_dependencies = Maps.newListMultiMap(); 20 private ListMultiMap<String, ITestNGMethod> m_groups = Maps.newListMultiMap(); 22 public DependencyMap(ITestNGMethod[] methods) { in DependencyMap() 23 for (ITestNGMethod m : methods) { in DependencyMap() 31 public List<ITestNGMethod> getMethodsThatBelongTo(String group, ITestNGMethod fromMethod) { in getMethodsThatBelongTo() 34 List<ITestNGMethod> result = Lists.newArrayList(); in getMethodsThatBelongTo() 38 List<ITestNGMethod> temp = m_groups.get(k); in getMethodsThatBelongTo() 52 public ITestNGMethod getMethodDependingOn(String methodName, ITestNGMethod fromMethod) { in getMethodDependingOn() 53 List<ITestNGMethod> l = m_dependencies.get(methodName); in getMethodDependingOn() 58 for (ITestNGMethod m : l) { in getMethodDependingOn()
|
D | ClassMethodMap.java | 20 private Map<Object, List<ITestNGMethod>> m_classMap = Maps.newHashMap(); 26 public ClassMethodMap(List<ITestNGMethod> methods, XmlMethodSelector xmlMethodSelector) { in ClassMethodMap() 27 for (ITestNGMethod m : methods) { in ClassMethodMap() 36 List<ITestNGMethod> l = m_classMap.get(instance); in ClassMethodMap() 49 public synchronized boolean removeAndCheckIfLast(ITestNGMethod m, Object instance) { in removeAndCheckIfLast() 50 List<ITestNGMethod> l = m_classMap.get(instance); in removeAndCheckIfLast() 55 for (ITestNGMethod tm : l) { in removeAndCheckIfLast() 64 private Class<?> getMethodClass(ITestNGMethod m) { in getMethodClass()
|
D | TestClass.java | 126 ITestNGMethod[] methods = m_testMethodFinder.getTestMethods(m_testClass, m_xmlTest); in initMethods() 187 private ITestNGMethod[] createTestMethods(ITestNGMethod[] methods) { in createTestMethods() 188 List<ITestNGMethod> vResult = Lists.newArrayList(); in createTestMethods() 189 for (ITestNGMethod tm : methods) { in createTestMethods() 203 ITestNGMethod[] result = vResult.toArray(new ITestNGMethod[vResult.size()]); in createTestMethods() 225 for (ITestNGMethod m : m_beforeClassMethods) { in dump() 228 for (ITestNGMethod m : m_beforeTestMethods) { in dump() 231 for (ITestNGMethod m : m_testMethods) { in dump() 234 for (ITestNGMethod m : m_afterTestMethods) { in dump() 237 for (ITestNGMethod m : m_afterClassMethods) { in dump()
|
D | SuiteRunner.java | 78 private List<ITestNGMethod> m_allTestMethods = Lists.newArrayList(); 278 Map<Method, ITestNGMethod> beforeSuiteMethods= new LinkedHashMap<>(); in privateRun() 279 Map<Method, ITestNGMethod> afterSuiteMethods = new LinkedHashMap<>(); in privateRun() 289 for (ITestNGMethod m : tr.getBeforeSuiteMethods()) { in privateRun() 293 for (ITestNGMethod m : tr.getAfterSuiteMethods()) { in privateRun() 306 beforeSuiteMethods.values().toArray(new ITestNGMethod[beforeSuiteMethods.size()]), in privateRun() 337 afterSuiteMethods.values().toArray(new ITestNGMethod[afterSuiteMethods.size()]), in privateRun() 455 public Map<String, Collection<ITestNGMethod>> getMethodsByGroups() { in getMethodsByGroups() 456 Map<String, Collection<ITestNGMethod>> result = Maps.newHashMap(); in getMethodsByGroups() 459 ITestNGMethod[] methods = tr.getAllTestMethods(); in getMethodsByGroups() [all …]
|
D | IResultMap.java | 9 public void addResult(ITestResult result, ITestNGMethod method); in addResult() 11 public Set<ITestResult> getResults(ITestNGMethod method); in getResults() 15 public void removeResult(ITestNGMethod m); in removeResult() 19 public Collection<ITestNGMethod> getAllMethods(); in getAllMethods()
|
/external/testng/src/main/java/org/testng/reporters/ |
D | FailedReporter.java | 7 import org.testng.ITestNGMethod; 107 Set<ITestNGMethod> methodsToReRun = Sets.newHashSet(); in generateXmlTest() 117 ITestNGMethod current = failedTest.getMethod(); in generateXmlTest() 120 ITestNGMethod method = failedTest.getMethod(); in generateXmlTest() 123 List<ITestNGMethod> methodsDependedUpon = in generateXmlTest() 126 for (ITestNGMethod m : methodsDependedUpon) { in generateXmlTest() 142 List<ITestNGMethod> result = Lists.newArrayList(); in generateXmlTest() 143 for (ITestNGMethod m : context.getAllTestMethods()) { in generateXmlTest() 150 Collection<ITestNGMethod> invoked= suite.getInvokedMethods(); in generateXmlTest() 151 for(ITestNGMethod tm: invoked) { in generateXmlTest() [all …]
|
/external/testng/src/test/java/org/testng/internal/ |
D | MethodInstanceTest.java | 13 import org.testng.ITestNGMethod; 184 public ITestNGMethod[] getTestMethods() { in getTestMethods() 189 public ITestNGMethod[] getBeforeTestMethods() { in getBeforeTestMethods() 194 public ITestNGMethod[] getAfterTestMethods() { in getAfterTestMethods() 199 public ITestNGMethod[] getBeforeClassMethods() { in getBeforeClassMethods() 204 public ITestNGMethod[] getAfterClassMethods() { in getAfterClassMethods() 209 public ITestNGMethod[] getBeforeSuiteMethods() { in getBeforeSuiteMethods() 214 public ITestNGMethod[] getAfterSuiteMethods() { in getAfterSuiteMethods() 219 public ITestNGMethod[] getBeforeTestConfigurationMethods() { in getBeforeTestConfigurationMethods() 224 public ITestNGMethod[] getAfterTestConfigurationMethods() { in getAfterTestConfigurationMethods() [all …]
|