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

jayway.com | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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 | 7 months ago
    java.lang.IllegalArgumentException: Test class can only have one constructor
  3. 0

    RobolectricTestRunner, Test class can only have one constructor

    Stack Overflow | 4 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