Github user Tibor17 commented on the pull request:

    https://github.com/apache/maven-surefire/pull/106#issuecomment-143758786
  
    All you need to do is to call this method with Java Reflection.
    There is `surefire-testng-util` module.
    You should create reflection utility in there.
    
    Please be inspired by `JUnit4ProviderUtil`, `ReflectionUtils` and `
    JUnit4Reflector`.
    
    Then create  `TestNgReflector` class using `ReflectionUtils` with fail-fast
    method `setDataProviderThreadCount` throwing `SurefireReflectionException`.
    In your case the put message in the exception should be properly saying
    that this method is supported since TestNG 5.10 or higher.
    
    Do not forget the license header and Javadoc on the top of your class,
    otherwise the rat-plugin will fail.
    
    
    On Mon, Sep 28, 2015 at 3:26 PM, Julien Herr <notificati...@github.com>
    wrote:
    
    > Sometime code is easier than explainations :) I updated #105
    > <https://github.com/apache/maven-surefire/pull/105>. Feel free to comment.
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/maven-surefire/pull/106#issuecomment-143743363>
    > .
    >
    
    
    
    -- 
    Cheers
    Tibor



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to