[jira] Created: (DISPL-642) Unit tests are failing

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (DISPL-642) Unit tests are failing

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unit tests are failing
-----------------------

                 Key: DISPL-642
                 URL: http://jira.codehaus.org/browse/DISPL-642
             Project: DisplayTag
          Issue Type: Test
    Affects Versions: 1.3
            Reporter: Kevin Rohr
            Priority: Minor
             Fix For: 1.3
         Attachments: src-test-diff.patch

Currently running the JUnit tests on the source code for the 1.3-SNAPSHOT release results in 7 failures and 5 errors.

The failures are caused by the PaginationHelperTest. This class defines it's own AssertEquals(Iterator, Iterator) function to assert that two iterator's have equal values, but in most tests (well, 7, to be specific) the asserts are getting called against JUnit's out-of-the-box AssertEquals(Object, Object), which is failing because the two objects being compared are not the same object.

The failures are being caused because the DisplaytagCase.getJspUrl() method was apparently changed to point to "/context/jsps" instead of "/context/standard", but the corresponding changes were not made in src/test/resources/xwork.xml and src/test/resources/WEB-INF/struts-config.xml.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
displaytag-devel mailing list
displaytag-devel@...
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

[jira] Commented: (DISPL-642) Unit tests are failing

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/DISPL-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195492#action_195492 ]

Kevin Rohr commented on DISPL-642:
----------------------------------

NOTE: the svn diff for this patch was run from the directory displaytag/displaytag/src/test

> Unit tests are failing
> -----------------------
>
>                 Key: DISPL-642
>                 URL: http://jira.codehaus.org/browse/DISPL-642
>             Project: DisplayTag
>          Issue Type: Test
>    Affects Versions: 1.3
>            Reporter: Kevin Rohr
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: src-test-diff.patch
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> Currently running the JUnit tests on the source code for the 1.3-SNAPSHOT release results in 7 failures and 5 errors.
> The failures are caused by the PaginationHelperTest. This class defines it's own AssertEquals(Iterator, Iterator) function to assert that two iterator's have equal values, but in most tests (well, 7, to be specific) the asserts are getting called against JUnit's out-of-the-box AssertEquals(Object, Object), which is failing because the two objects being compared are not the same object.
> The failures are being caused because the DisplaytagCase.getJspUrl() method was apparently changed to point to "/context/jsps" instead of "/context/standard", but the corresponding changes were not made in src/test/resources/xwork.xml and src/test/resources/WEB-INF/struts-config.xml.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
displaytag-devel mailing list
displaytag-devel@...
https://lists.sourceforge.net/lists/listinfo/displaytag-devel