Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13238

Add actual row output to assertEmpty error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.0.13, 3.11.0, 4.0-alpha1, 4.0
    • None

    Description

      We have several issues popping up every now and then that are hard to debug and the test failure messages aren't entirely helpful, for example:

      java.lang.AssertionError: Expected empty result but got 1 rows:
      

      It could be much better if we could have an actual output (what exactly the row that got returned appended to it:

      java.lang.AssertionError: Expected empty result but got 1 rows: [row(value=null)]
      

      The nice side-effect of this change is that now we will have a helper method that can nicely turn an UntypedResultSet into String (I apologise if I did overlooked one).

      Attachments

        Activity

          People

            ifesdjeen Alex Petrov
            ifesdjeen Alex Petrov
            Alex Petrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: