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

  1. ,

    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.

  2. ,

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

Solutions on the web

via GitHub by hasancelik
, 1 year ago
expected same:<com.hazelcast.partition.strategy.StringPartitioningStrategy@54bccadc> was not:<com.hazelcast.partition.strategy.StringPartitioningStrategy@35fdd8f2>
via GitHub by hasancelik
, 1 year ago
expected same:<com.hazelcast.partition.strategy.StringPartitioningStrategy@1bf1ce4> was not:<com.hazelcast.partition.strategy.StringPartitioningStrategy@445d49e3>
via GitHub by hasancelik
, 1 year ago
expected same:<com.hazelcast.partition.strategy.StringPartitioningStrategy@5a927881> was not:<com.hazelcast.partition.strategy.StringPartitioningStrategy@11bf4347>
via Stack Overflow by xGIx
, 8 months ago
expected same:<validationsucceeded> was not:<validationsucceeded>
via GitHub by tjuerge
, 2 years ago
expected same:<org.sculptor.generator.cartridge.test.TestTemplateExtension@222864cd> was not:<org.sculptor.generator.chain.TestTemplate@9f1e040>
via GitHub by ejona86
, 2 years ago
expected same:<io.grpc.Context$CancellableContext@1a2f009> was not:<null>
java.lang.AssertionError: expected same:<com.hazelcast.partition.strategy.StringPartitioningStrategy@54bccadc> was not:<com.hazelcast.partition.strategy.StringPartitioningStrategy@35fdd8f2>	at	at org.junit.Assert.failNotSame(	at org.junit.Assert.assertSame(	at org.junit.Assert.assertSame(	at