Improve Lists#newArrayList()
Simplifications in ClassHelper
Add tests for #566
Simplifications in Parameters
Simplifications in MethodInvocationHelper
Use ITestNGMethod#getInstance instead of #getInstances around Invoker
Simplification: use single instance instead of instances[] in Invoker
Do not pass all ITestNGMethods into Invoker, use ITestContext#getAllTestMethods() instead
Minor refactoring in MethodGroupsHelper
Invoker: simplify skip exception checks (extract method) + minor
Invoker:
Simplify #collectResults;
Do not use deprecated methods;
invokeTestMethods now returns single ITestResult (due to migration from instances to instance)
Set test result end time asap after method invoked, before any post-invocation checks
Invoker: improve ParameterBag usage
Invoker: better error message in case of expected exceptions
Invoker: minor in handleInvocationResults method
Invoker: use FailureContext to pass modifiable failure count&instances.
Properly invoke handleInvocationResults: do not call it twice. (from invokeMethod and invokeTestMethods) Now it called only from invokeMethod with proper FailureContext
This commit fixes #566
Invoker: improve message when not all method dependencies satisfied
Invoker: minor improvement