Java 类org.testng.IMethodSelectorContext 实例源码

项目:qaf    文件:QAFMethodSelector.java   
@Override
public boolean includeMethod(IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod) {

    boolean include = applyMetafilter(method);
    if (!include) {
        context.setStopped(true);
    }
    return include;
}
项目:tempto    文件:TestNameGroupNameMethodSelector.java   
@Override
public boolean includeMethod(IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod)
{
    TestMetadata testMetadata = testMetadataReader.readTestMetadata(method);
    return includeBasedOnTestName(testMetadata) &&
            includeBasedOnGroups(testMetadata) &&
            !excludeBasedOnGroups(testMetadata);
}
项目:JGiven    文件:MethodSelector.java   
@Override
public boolean includeMethod( IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod ) {
    if( TestNgExecutor.methodName != null ) {
        return method.getMethodName().equals( TestNgExecutor.methodName );
    }
    return true;
}
项目:ezyfox-sfs2x    文件:MethodTestSelector.java   
@Override
public boolean includeMethod(IMethodSelectorContext context, 
        ITestNGMethod method, boolean isTestMethod) {
    return true;
}