java.lang.AssertionError: This test should fail and generate screensholt

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by asvdw
, 1 year ago
This test should fail and generate screensholt
via Sonatype JIRA by Peter Lynch, 1 year ago
Should find one artifact expected:<1> but was:<0>
via GitHub by puntogil
, 1 year ago
expected [# NAME `test` - # SYNOPSIS `test` *command* [ *command-args* ] # COMMANDS - `Args1` args1 description --- # NAME `test` `Args1` - args1 description # SYNOPSIS `test` `Args1` [ `-groups` *groups* ] [ `-long` *l* ] [ `-debug
via Google Groups by Daniel Dyer, 4 months ago
Should have run on 3 threads but ran on 2 expected:<3> but was:<2>
via Sonatype JIRA by Peter Lynch, 1 year ago
expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo>
via Google Groups by Tobias Vejda, 2 years ago
: Lists differ at element [3]: /LongStringTest/SecondLevelTest/LongStringTest/Test3/ bfffdd != /LongStringTest/SecondLevelTest/LongStringTest/Test/aaaa expected:</LongStringTest/SecondLevelTest/LongStringTest/Test3/bfffdd> but was:</LongStringTest/SecondLevelTest/LongStringTest/Test/aaaa>
java.lang.AssertionError: This test should fail and generate screensholt
at org.testng.Assert.fail(Assert.java:94)
at scenarios.Contact.fail(Contact.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:74)
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Users with the same issue

4 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 3 days ago
Once, 3 weeks ago
21 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.