java.lang.AssertionError: JSON path "$" Expected: iterable over ["Recurring Schedule 0 end_time and Recurring Schedule 1 start_time are overlapping."] in any order but: Not matched: "Recurring Schedule 0 end_time 05:00 should be after start_time 19:00."

GitHub | fraenkel | 4 months ago
  1. 0

    GitHub comment 75#240384625

    GitHub | 4 months ago | fraenkel
    java.lang.AssertionError: JSON path "$" Expected: iterable over ["Recurring Schedule 0 end_time and Recurring Schedule 1 start_time are overlapping."] in any order but: Not matched: "Recurring Schedule 0 end_time 05:00 should be after start_time 19:00."
  2. 0

    Getting null for form parameter in Spring Test Framework Controller test

    Stack Overflow | 1 year ago | Meena Chaudhary
    java.lang.AssertionError: Model attribute 'username' Expected: is "somebody@gmail.com" got: null
  3. 0

    GitHub comment 527#213480179

    GitHub | 7 months ago | markpollack
    java.lang.AssertionError: JSON path "$.page.totalElements" Expected: is <2> but: was <3>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Testing model attribute in Spring Boot Controllers

    Stack Overflow | 3 months ago | Alexander Not
    java.lang.AssertionError: Model attribute 'restaurants' Expected: a collection with size <2> but: collection size was <0>
  6. 0

    JsonPath expression with filters in Spring MVC test

    Stack Overflow | 3 weeks ago | WinterN
    java.lang.AssertionError: JSON path "$._embedded.content[?(@.type=='JOB')].functions" Expected: a collection with size <3> but: collection size was <1>

  1. olle.hallin 1 times, last 1 week ago
  2. davidvanlaatum 7 times, last 3 weeks ago
  3. cesarnog 1 times, last 2 months ago
  4. tfr 1 times, last 3 months ago
  5. qoomon 1 times, last 4 months ago
1 more registered users
3 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

    JSON path "$" Expected: iterable over ["Recurring Schedule 0 end_time and Recurring Schedule 1 start_time are overlapping."] in any order but: Not matched: "Recurring Schedule 0 end_time 05:00 should be after start_time 19:00."

    at org.hamcrest.MatcherAssert.assertThat()
  2. Hamcrest
    MatcherAssert.assertThat
    1. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    1 frame
  3. Spring TestContext
    MockMvc$1.andExpect
    1. org.springframework.test.util.JsonPathExpectationsHelper.assertValue(JsonPathExpectationsHelper.java:76)
    2. org.springframework.test.web.servlet.result.JsonPathResultMatchers$1.match(JsonPathResultMatchers.java:86)
    3. org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:171)
    3 frames
  4. org.cloudfoundry.autoscaler
    ScheduleRestController_RecurringScheduleValidationTest.testCreateSchedule_overlapping_startEndTime_with_startEndDate
    1. org.cloudfoundry.autoscaler.scheduler.rest.ScheduleRestController_RecurringScheduleValidationTest.assertErrorMessage(ScheduleRestController_RecurringScheduleValidationTest.java:780)
    2. org.cloudfoundry.autoscaler.scheduler.rest.ScheduleRestController_RecurringScheduleValidationTest.assertOverlapStartEndDate(ScheduleRestController_RecurringScheduleValidationTest.java:717)
    3. org.cloudfoundry.autoscaler.scheduler.rest.ScheduleRestController_RecurringScheduleValidationTest.testCreateSchedule_overlapping_startEndTime_with_startEndDate(ScheduleRestController_RecurringScheduleValidationTest.java:514)
    3 frames