You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org> on 2005/11/14 09:24:29 UTC
[jira] Closed: (MYFACES-818) AddResource unit test
[ http://issues.apache.org/jira/browse/MYFACES-818?page=all ]
Bruno Aranda closed MYFACES-818:
--------------------------------
Fix Version: Nightly
Resolution: Fixed
Added to the SVN. Many thanks, Simon, for your valuable contributions!
> AddResource unit test
> ---------------------
>
> Key: MYFACES-818
> URL: http://issues.apache.org/jira/browse/MYFACES-818
> Project: MyFaces
> Type: Improvement
> Reporter: Simon Kitching
> Priority: Minor
> Fix For: Nightly
> 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