All,
I have a question regarding assertTitleNotSame(String title).
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.
Thanks,
Tony
Confidentiality Notice: This electronic message transmission, including any
attachment(s), may contain confidential, proprietary, or privileged information
from Chemical Abstracts Service ("CAS"), a division of the American Chemical
Society ("ACS"). If you have received this transmission in error, be advised
that any disclosure, copying, distribution, or use of the contents of this
information is strictly prohibited. Please destroy all copies of the message
and contact the sender immediately by either replying to this message or
calling 614-447-3600.
------------------------------------------------------------------------------
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-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users