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


Solutions on the web10

Solution icon of web
via jayway.com by Unknown author, 1 year ago
Test class can only have one constructor

Solution icon of web
via jayway.com by Unknown author, 1 year ago
Test class can only have one constructor

Solution icon of github
Test class can only have one constructor

Solution icon of web
via jayway.com by Unknown author, 6 months ago
Test class can only have one constructor

Solution icon of googlegroups
Test class can only have one constructor

Solution icon of web
Test class can only have one constructor

Solution icon of web
Test class can only have one constructor

Solution icon of stackoverflow
Test class can only have one constructor

Solution icon of stackoverflow
via Stack Overflow by Yasir
, 1 year ago
Test class can only have one constructor

Solution icon of stackoverflow
Test class can only have one constructor

Stack trace

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

	at org.junit.runners.model.TestClass.<init>(TestClass.java:40)
	at org.junit.runners.ParentRunner.<init>(ParentRunner.java:75)
	at org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:57)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init>(SpringJUnit4ClassRunner.java:104)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 more bugmates