Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1007

harden query builder tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • QueryBuilder
    • None

    Description

      The problem is in the way jena-querybuilder does testing. It does a regex on the rturn from
      builder.buildString()}] which in term is {{builder.build().toString().

      Testing whether a query is the expected one by using string matching is fragile. Much better
      is to call Query.equals – write the expected query, parse it to a Query object and
      call Query::equals.

      The reason jena-querybuilder is now failing tests is JENA-972 which improves the string appear
      of queries.

      Attachments

        Activity

          People

            claude Claude Warren
            claude Claude Warren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: