You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Simon Kitching (JIRA)" <de...@myfaces.apache.org> on 2005/11/13 23:44:23 UTC
[jira] Updated: (MYFACES-818) AddResource unit test
[ http://issues.apache.org/jira/browse/MYFACES-818?page=all ]
Simon Kitching updated MYFACES-818:
-----------------------------------
Attachment: AddResourceTest.java
> AddResource unit test
> ---------------------
>
> Key: MYFACES-818
> URL: http://issues.apache.org/jira/browse/MYFACES-818
> Project: MyFaces
> Type: Improvement
> Reporter: Simon Kitching
> Priority: Minor
> Attachments: AddResourceTest.java
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira