@Override public int getParameterInvocationCount() { return testNGMethod.getParameterInvocationCount(); }
@Override public int getParameterInvocationCount() { return testNGMethod.getParameterInvocationCount(); }
static Object getMethodInvocationToken(ITestNGMethod method, Object instance) { return String.format("%s+%d+%d", instance.toString(), method.getCurrentInvocationCount(), method.getParameterInvocationCount()); }
static Object getMethodInvocationToken(ITestNGMethod method, Object instance) { return String.format( "%s+%d+%d", instance.toString(), method.getCurrentInvocationCount(), method.getParameterInvocationCount()); }
@Override public int getParameterInvocationCount() { return delegate.getParameterInvocationCount(); }
@Override public int getParameterInvocationCount() { return delegate.getParameterInvocationCount(); }
@Override public int getParameterInvocationCount() { return method.getParameterInvocationCount(); }
private boolean isHighPriority(IInvokedMethod method) { if (!isAnnotatedWithTest(method)) { // Abort. There will already be an exception thrown in isLowPriority for this case. return true; } int high = method.getTestMethod().getPriority(); for (ITestNGMethod test : method.getTestMethod().getTestClass().getTestMethods()) { if (test.getEnabled() && test.getPriority() > high) { return false; } } Test t = method.getTestMethod().getConstructorOrMethod().getMethod().getAnnotation(Test.class); // For a test method with a data provider if (!(t.dataProvider().isEmpty())) { int currentInvocationCount = method.getTestMethod().getCurrentInvocationCount(); int parameterInvocationCount = method.getTestMethod().getParameterInvocationCount(); // If the data set from the data provider is exhausted // It means its the last method with the data provider- this is the exit condition return (currentInvocationCount == parameterInvocationCount); } return true; }