Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-197

groundless unit tests suite.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0-RC2
    • 1.0-RC2
    • core / taglib.core
    • None

    Description

      Core unit test suite src/test/org/apache/commons/jelly/suite.jelly is groundless.
      She' using "assertTrue" tag WHICH DOESN'T EXIST !
      So tag is consiered as a StaticTag and test are not done :unit test always successful on exam although
      they can be wrong.

      Output (see later) is meaningful.

      There's same problem on jelly-tags/bean/src/test/org/apache/commons/jelly/tags/bean/suite.jelly

      – output –
      ....this should always workthis should always workthis should always work.this should always work.

      Created a new bean: org.apache.commons.jelly.core.Customer@1386918[name=James;city=London]

      .

      Created a new bean: org.apache.commons.jelly.core.Customer@146c1d4[name=James;city=London]

      .

      Created a new bean: org.apache.commons.jelly.core.Customer@1df8b99[name=Bob;city=Atlanta]

      ....<test:assertTrue test="true"></test:assertTrue>.<test:assertTrue test="true"></test:assertTrue><test:assertTrue test="true"></test:assertTrue>.<test:assertTrue test="true"></test:assertTrue>.<test:assertTrue test="true"></test:assertTrue>.<test:assertTrue test="true"></test:assertTrue>.
      Time: 0,203

      OK (17 tests)

      Attachments

        1. patch.suite.jelly.txt
          2 kB
          Marc DeXeT
        2. patch.jelly-tag.bean.suite.jelly.txt
          7 kB
          Marc DeXeT

        Activity

          People

            diongillard dion gillard
            marc_dexet Marc DeXeT
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: