Bugs item #3116839, was opened at 2010-11-23 19:52
Message generated for change (Settings changed) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3116839&group_id=61302
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Core API
>Group: Release 3.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Tony Qian (tonyqian)
Assigned to: Julien HENRY (henryju)
Summary: assertTitleNotSame works incorrectly
Initial Comment:
Accroding to javadoc, this method is to check if the page title is not equal to
the value of title passed in the method.
/**
* Assert title of current html page in conversation is not
* equal to another value.
*
* @param title
* unexpected title value
*/
But this method calls Assert.assertNotSame(title,
getTestEngine().getPageTitle()); Assert.assertNotSame calls following method
static public void assertNotSame(String message, Object expected, Object
actual) {
if (expected == actual)
failSame(message);
}
As you can see, we are comparing references (addresses in memory), not string
values. Therefore, assertTitleNotSame(String title) always succeeds.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3116839&group_id=61302
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development