java.lang.AssertionError: Deletion should be unsuccessful. Exception is expected.

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

Samebug tips

,

Check your assert declaration and the method implementation with the condition.

,

My guess is there is some kind of static state in the code being tested or in the test itself, so the tests aren't isolated. Adding the test changes the test order. In any case, your best course of action is to use the debugger to see why the tests fail.

Solutions on the web

via GitHub by xiahome
, 11 months ago
Deletion should be unsuccessful. Exception is expected.
via hadoop-yarn-dev by Apache Jenkins Server, 1 year ago
Using localConfigurationProvider. Should not get any exception.
via hadoop-yarn-dev by Apache Jenkins Server, 1 year ago
Using localConfigurationProvider. Should not get any exception.
via GitHub by hasancelik
, 1 year ago
Cluster size is not correct. Expected: 3 Actual: 1
via Stack Overflow by laura
, 2 years ago
java.lang.AssertionError: Deletion should be unsuccessful. Exception is expected.
at org.junit.Assert.fail(Assert.java:91)
at com.github.ambry.router.DeleteManagerTest.assertFailureAndCheckErrorCode(DeleteManagerTest.java:430)
at com.github.ambry.router.DeleteManagerTest.access$300(DeleteManagerTest.java:54)
at com.github.ambry.router.DeleteManagerTest$4.testAndAssert(DeleteManagerTest.java:377)
at com.github.ambry.router.RouterTestHelpers.testWithErrorCodes(RouterTestHelpers.java:79)
at com.github.ambry.router.RouterTestHelpers.testWithErrorCodes(RouterTestHelpers.java:62)
at com.github.ambry.router.DeleteManagerTest.testRouterClosedDuringOperation(DeleteManagerTest.java:371)

Users with the same issue

Once, 2 days ago
Once, 3 days ago
Once, 6 days ago
Once, 1 week ago
2 times, 2 weeks ago

Write tip

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