java.lang.AssertionError: expected:<2> but was:<1>

GitHub | hasancelik | 2 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 9124#257797351

    GitHub | 4 months ago | hasancelik
    java.lang.AssertionError: expected:<2> but was:<1>
  2. 0

    GitHub comment 9124#260272144

    GitHub | 3 months ago | hasancelik
    java.lang.AssertionError: expected:<2> but was:<1>
  3. 0

    GitHub comment 9124#258361917

    GitHub | 4 months ago | hasancelik
    java.lang.AssertionError: expected:<2> but was:<1>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 9124#266665926

    GitHub | 2 months ago | hasancelik
    java.lang.AssertionError: expected:<2> but was:<1>
  6. 0

    CardinalityEstimatorAdvancedTest.testCardinalityEstimatorFailure_whenSwitchedToDense

    GitHub | 4 months ago | hasancelik
    java.lang.AssertionError: expected:<10059> but was:<0>

  1. jf-ast 3 times, last 2 weeks ago
  2. treefolk 3 times, last 2 weeks ago
  3. kjhdofjosvs 1 times, last 1 month ago
  4. MoYapro 3 times, last 2 months ago
  5. andyglick 1 times, last 2 months ago
5 more registered users
32 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.AssertionError

    expected:<2> but was:<1>

    at org.junit.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.fail(Assert.java:88)
    2. org.junit.Assert.failNotEquals(Assert.java:834)
    3. org.junit.Assert.assertEquals(Assert.java:645)
    4. org.junit.Assert.assertEquals(Assert.java:631)
    4 frames
  3. com.hazelcast.cardinality
    CardinalityEstimatorAdvancedTest.testCardinalityEstimatorSpawnNodeInParallel
    1. com.hazelcast.cardinality.CardinalityEstimatorAdvancedTest.testCardinalityEstimatorSpawnNodeInParallel(CardinalityEstimatorAdvancedTest.java:111)
    1 frame