java.lang.IllegalArgumentException: Test class can only have one constructor

jayway.com | 6 months 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

    Using another JUnit Runner with PowerMock - Jayway

    jayway.com | 1 year ago
    java.lang.IllegalArgumentException: Test class can only have one constructor
  2. 0

    Using another JUnit Runner with PowerMock - Jayway

    jayway.com | 6 months ago
    java.lang.IllegalArgumentException: Test class can only have one constructor
  3. 0

    RobolectricTestRunner, Test class can only have one constructor

    Stack Overflow | 3 years ago | jakk
    java.lang.IllegalArgumentException: Test class can only have one constructor
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Robolectric & Junit

    Stack Overflow | 3 years ago | Yasir
    java.lang.IllegalArgumentException: Test class can only have one constructor

    2 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Test class can only have one constructor

      at org.junit.runners.model.TestClass.<init>()
    2. JUnit
      BlockJUnit4ClassRunner.<init>
      1. org.junit.runners.model.TestClass.<init>(TestClass.java:40)
      2. org.junit.runners.ParentRunner.<init>(ParentRunner.java:75)
      3. org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:57)
      3 frames
    3. Spring TestContext
      SpringJUnit4ClassRunner.<init>
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init>(SpringJUnit4ClassRunner.java:104)
      1 frame