org.scalatest.exceptions.TestFailedException: {"count":3,"pagination":{"offset":0,"limit":100},"content":{"uri":"http://locahost.com/catalogue/content?order=Query&id=18,20,19"},"list":[{"id":"18","position":27},{"id":"20","position":341},{"id":"19","position":33}]} was not equal to {"count":3,"pagination":{"offset":0,"limit":100},"content":{"uri":"http://locahost.com/catalogue/content?order=Query&id=18,20,19"},"list":[{"id":"18","timestamp":"2015-01-28T11:55:44.494Z","content":"Episode","position":27},{"id":"20","timestamp":"2015-01-19T11:55:44.494Z","content":"Program","position":341},{"id":"19","timestamp":"2015-01-17T11:55:44.494Z","content":"Episode","position":33}]} at org.scalatest.MatchersHelper$.newTestFailedException(MatchersHelper.scala:160)

Stack Overflow | Bruce Lowe | 2 years ago
  1. 0

    How to get intellij to offer a text diff comparison on failed tests

    Stack Overflow | 2 years ago | Bruce Lowe
    org.scalatest.exceptions.TestFailedException: {"count":3,"pagination":{"offset":0,"limit":100},"content":{"uri":"http://locahost.com/catalogue/content?order=Query&id=18,20,19"},"list":[{"id":"18","position":27},{"id":"20","position":341},{"id":"19","position":33}]} was not equal to {"count":3,"pagination":{"offset":0,"limit":100},"content":{"uri":"http://locahost.com/catalogue/content?order=Query&id=18,20,19"},"list":[{"id":"18","timestamp":"2015-01-28T11:55:44.494Z","content":"Episode","position":27},{"id":"20","timestamp":"2015-01-19T11:55:44.494Z","content":"Program","position":341},{"id":"19","timestamp":"2015-01-17T11:55:44.494Z","content":"Episode","position":33}]} at org.scalatest.MatchersHelper$.newTestFailedException(MatchersHelper.scala:160)
  2. 0

    Build failure (org.neo4j.cypher.internal.compiler.v2_2.ast.rewriters.InlineProjectionsTest)

    GitHub | 2 years ago | antonio-castellon
    org.scalatest.exceptions.TestFailedException: Query(None,SingleQuery(List(Match(false,Pattern(List(EveryPath(NodePattern(Some(Identifier(n)),List(),None,true)))),List(),Some(Where(In(FunctionInvocation(FunctionName(id),false,Vector(Identifier(n))),Collection(List(SignedDecimalIntegerLiteral(0), SignedDecimalIntegerLiteral(1), SignedDecimalIntegerLiteral(2), SignedDecimalIntegerLiteral(3))))))), With(false,ReturnItems(false,Vector(AliasedReturnItem(Property(Identifier(n),PropertyKeyName(division)),Identifier(n.division)), AliasedReturnItem(FunctionInvocation(FunctionName(max),false,Vector(Property(Identifier(n),PropertyKeyName(age)))),Identifier(max(n.age))))),None,None,None,None), With(false,ReturnItems(false,Vector(AliasedReturnItem(Identifier(n.division),Identifier(n.division)), AliasedReturnItem(Identifier(max(n.age)),Identifier(max(n.age))))),None,None,None,None), With(false,ReturnItems(false,Vector(AliasedReturnItem(Identifier(n.division),Identifier(n.division)), AliasedReturnItem(Identifier(max(n.age)),Identifier( FRESHID197)))),Some(OrderBy(List(AscSortItem(Identifier( FRESHID197))))),None,None,None), Return(false,ReturnItems(false,List(AliasedReturnItem(Identifier(n.division),Identifier(n.division)), AliasedReturnItem(Identifier( FRESHID197),Identifier(max(n.age))))),None,None,None)))) did not equal Query(None,SingleQuery(List(Match(false,Pattern(List(EveryPath(NodePattern(Some(Identifier(n)),List(),None,true)))),List(),Some(Where(In(FunctionInvocation(FunctionName(id),false,Vector(Identifier(n))),Collection(List(SignedDecimalIntegerLiteral(0), SignedDecimalIntegerLiteral(1), SignedDecimalIntegerLiteral(2), SignedDecimalIntegerLiteral(3))))))), With(false,ReturnItems(false,Vector(AliasedReturnItem(Property(Identifier(n),PropertyKeyName(division)),Identifier(n.division)), AliasedReturnItem(FunctionInvocation(FunctionName(max),false,Vector(Property(Identifier(n),PropertyKeyName(age)))),Identifier(max(n.age))))),None,None,None,None), With(false,ReturnItems(false,Vector(AliasedReturnItem(Identifier(n.division),Identifier(n.division)), AliasedReturnItem(Identifier(max(n.age)),Identifier(max(n.age))))),None,None,None,None), With(false,ReturnItems(false,Vector(AliasedReturnItem(Identifier(n.division),Identifier(n.division)), AliasedReturnItem(Identifier(max(n.age)),Identifier( FRESHID194)))),Some(OrderBy(List(AscSortItem(Identifier( FRESHID194))))),None,None,None), Return(false,ReturnItems(false,List(AliasedReturnItem(Identifier(n.division),Identifier(n.division)), AliasedReturnItem(Identifier( FRESHID194),Identifier(max(n.age))))),None,None,None))))
  3. 0

    Need relative floating point comparison

    GitHub | 2 years ago | mkolod
    org.scalatest.exceptions.TestFailedException: 2.0 did not equal 3.01 plus or minus 0.1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Matching a collection against a list of matchers, not values

    GitHub | 2 years ago | hipnoizz
    org.scalatest.exceptions.TestFailedException: List(Book(Peace,1000), Book(War,1100)) did not contain element BookTitled(Quiet)
  6. 0

    Re: [scalatest-users] Custom matcher for Set types

    Google Groups | 4 years ago | Bill Venners
    org.scalatest.exceptions.TestFailedException: Set(1, 2, 3) did not equal Set(1, 2, 4) left &~ right = Set(3) right &~ left = Set(4)

  1. rp 2 times, last 1 week ago
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.scalatest.exceptions.TestFailedException

    {"count":3,"pagination":{"offset":0,"limit":100},"content":{"uri":"http://locahost.com/catalogue/content?order=Query&id=18,20,19"},"list":[{"id":"18","position":27},{"id":"20","position":341},{"id":"19","position":33}]} was not equal to {"count":3,"pagination":{"offset":0,"limit":100},"content":{"uri":"http://locahost.com/catalogue/content?order=Query&id=18,20,19"},"list":[{"id":"18","timestamp":"2015-01-28T11:55:44.494Z","content":"Episode","position":27},{"id":"20","timestamp":"2015-01-19T11:55:44.494Z","content":"Program","position":341},{"id":"19","timestamp":"2015-01-17T11:55:44.494Z","content":"Episode","position":33}]} at org.scalatest.MatchersHelper$.newTestFailedException(MatchersHelper.scala:160)

    at org.scalatest.Matchers$ShouldMethodHelper$.shouldMatcher()
  2. scalatest
    Matchers$AnyShouldWrapper.should
    1. org.scalatest.Matchers$ShouldMethodHelper$.shouldMatcher(Matchers.scala:6231)
    2. org.scalatest.Matchers$AnyShouldWrapper.should(Matchers.scala:6265)
    2 frames