java.lang.AssertionError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check your pattern declaration or check your assert declaration.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • There problems are only visible after fixing HQLPARSER-39. There are about 500 failed tests. One such example : gUnitHQLGrammar.testsuite line 672: SELECT m.id FROM m IN class org.hibernate.test.Master, d IN elements(m.details) WHERE d.i=5 - OK fails with: {code} java.lang.AssertionError: Unexpected parsing result (parser output: Found unconsumed tokens: "class org.hibernate.test.Master, d IN elements(m.details) WHERE d.i=5".) expected:<OK> but was:<FAIL> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.evaluate(GrammarRuleStatement.java:97) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runLeafNode(GrammarRuleStatements.java:94) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.run(GrammarRuleStatement.java:118) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:42) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) {code}
    via by Adrian Nistor,
  • There problems are only visible after fixing HQLPARSER-39. There are about 500 failed tests. One such example : gUnitHQLGrammar.testsuite line 672: SELECT m.id FROM m IN class org.hibernate.test.Master, d IN elements(m.details) WHERE d.i=5 - OK fails with: {code} java.lang.AssertionError: Unexpected parsing result (parser output: Found unconsumed tokens: "class org.hibernate.test.Master, d IN elements(m.details) WHERE d.i=5".) expected:<OK> but was:<FAIL> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.evaluate(GrammarRuleStatement.java:97) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runLeafNode(GrammarRuleStatements.java:94) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.run(GrammarRuleStatement.java:118) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:42) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) {code}
    via by Adrian Nistor,
  • substring() method for linked list object
    via Stack Overflow by boop
    ,
  • GitHub comment 72#45003047
    via GitHub by Neiko2002
    ,
    • java.lang.AssertionError: Unexpected parsing result (parser output: Found unconsumed tokens: "class org.hibernate.test.Master, d IN elements(m.details) WHERE d.i=5".) expected:<OK> but was:<FAIL> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.evaluate(GrammarRuleStatement.java:97) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runLeafNode(GrammarRuleStatements.java:94) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.run(GrammarRuleStatement.java:118) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:42) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

    Users with the same issue

    oddodd
    17 times, last one,
    jf-astjf-ast
    1 times, last one,
    AxeloAxelo
    3 times, last one,
    rocdayrocday
    1 times, last one,
    andyglickandyglick
    2 times, last one,
    95 more bugmates