org.junit.ComparisonFailure: expected:<0:[-1]> but was:<0:[0]>

Spring JIRA | Lance S | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Test failure in Windows 7: ConfigTest.testGetDir()

    GitHub | 6 years ago | martincastell
    org.junit.ComparisonFailure: expected:<target[/]indexes> but was:<target[\]indexes>
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    CustomerRegisterValidateTest#testCustomerRegisterRequiredValidate is failed when locale is English(en).

    GitHub | 3 years ago | kazuki43zoo
    org.junit.ComparisonFailure: expected:<Job [ ]is required.> but was:<Job []is required.>
  4. 0

    2 tests failing on Mac build, not in Travis (Linux)

    GitHub | 3 years ago | nimeacuerdo
    org.junit.ComparisonFailure: expected:<...atrixColorFilter<1,0[,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,]0>> but was:<...atrixColorFilter<1,0[0,0,00,0,00,0,00,0,00,0,00,1,00,0,00,0,00, 0,00,0,00,0,00,1,00,0,00,0,00,0,00,0,00,0,00,1,00,0,0]0>>

  1. jf-ast 1 times, last 3 weeks ago
  2. MoYapro 2 times, last 2 months ago
  3. richard77 2 times, last 2 months ago
  4. treefolk 2 times, last 2 months ago
  5. kjhdofjosvs 2 times, last 2 months ago
3 more registered users
7 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. org.junit.ComparisonFailure

    expected:<0:[-1]> but was:<0:[0]>

    at org.junit.Assert.assertEquals()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.assertEquals(Assert.java:123)
    2. org.junit.Assert.assertEquals(Assert.java:145)
    2 frames
  3. foo.bar
    SpringCacheBrokenTest.testCache
    1. foo.bar.SpringCacheBrokenTest.testCache(SpringCacheBrokenTest.java:52)
    1 frame