org.apache.maven.surefire.testset.TestSetFailedException: Unable to find appropriate constructor to create suite: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties); nested exception is java.lang.NoSuchMethodException: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties) java.lang.NoSuchMethodException: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties)

Google Groups | Jason Porter | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    TestNG and Maven not working with current snapshot

    Google Groups | 9 years ago | Jason Porter
    org.apache.maven.surefire.testset.TestSetFailedException: Unable to find appropriate constructor to create suite: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties); nested exception is java.lang.NoSuchMethodException: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties) java.lang.NoSuchMethodException: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties)

    Root Cause Analysis

    1. org.apache.maven.surefire.testset.TestSetFailedException

      Unable to find appropriate constructor to create suite: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties); nested exception is java.lang.NoSuchMethodException: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties) java.lang.NoSuchMethodException: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.<init>(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties)

      at java.lang.Class.getConstructor0()
    2. Java RT
      Class.getConstructor
      1. java.lang.Class.getConstructor0(Class.java:2706)
      2. java.lang.Class.getConstructor(Class.java:1657)
      2 frames
    3. SureFire
      Surefire.run
      1. org.apache.maven.surefire.Surefire.instantiateObject(Surefire.java:217)
      2. org.apache.maven.surefire.Surefire.instantiateSuite(Surefire.java:246)
      3. org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:148)
      4. org.apache.maven.surefire.Surefire.run(Surefire.java:111)
      4 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames