org.testng.InstanceOrderingMethodInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
The newest version!
package org.testng;
import java.util.List;
import java.util.Map;
import org.testng.collections.Lists;
import org.testng.collections.Maps;
/** A method interceptor that sorts its methods per instances (i.e. per class). */
class InstanceOrderingMethodInterceptor implements IMethodInterceptor {
@Override
public List intercept(List methods, ITestContext context) {
return groupMethodsByInstance(methods);
}
/** The default method interceptor which sorts methods by instances (i.e. by class). */
private List groupMethodsByInstance(List methods) {
List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy