Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-358

AddResource unit test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.2
    • None
    • None

    Description

      Attached is a proposed unit test case for the AddResource class. The unit tests cover only a small percentage of the functionality of the AddResource class but it's a start.

      This test also demonstrates an existing bug in the AddResource class; the unit test fails (correctly!) because of this code:
      if(bodyInsertPosition>0)

      { ..... buf.append("\""); originalResponse.insert( bodyInsertPosition-1, " "+ buf.toString()); }

      which is causing <body> to always be transformed into <body "> regardless of whether there is any stuff to insert into the body's onload method or not.

      Attachments

        1. AddResourceTest.java
          8 kB
          Simon Kitching

        Activity

          People

            Unassigned Unassigned
            skitching Simon Kitching
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: