Bugs item #3116839, was opened at 2010-11-23 13:52
Message generated for change (Tracker Item Submitted) made by tonyqian
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tony Qian (tonyqian)
Assigned to: Nobody/Anonymous (nobody)
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
JWebUnit-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to