<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Musings about this and that</title>
	<atom:link href="http://ajesse.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajesse.wordpress.com</link>
	<description>have a disney day ;)</description>
	<lastBuildDate>Fri, 13 Nov 2009 10:55:19 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on When equals() is not equal enough by NPE comparing BigDecimal objects? &#171; Musings about this and that</title>
		<link>http://ajesse.wordpress.com/2009/10/27/when-equals-is-not-equal-enough/#comment-25</link>
		<dc:creator>NPE comparing BigDecimal objects? &#171; Musings about this and that</dc:creator>
		<pubDate>Fri, 13 Nov 2009 10:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/?p=65#comment-25</guid>
		<description>[...] &#8212; ajesse @ 11:55 am Tags: BigDecimal  After having learned that equals() is not equal enough (my other post) I just replaced equals by compareTo. After studying the Javadoc for BigDecimal.compareTo I did not [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8212; ajesse @ 11:55 am Tags: BigDecimal  After having learned that equals() is not equal enough (my other post) I just replaced equals by compareTo. After studying the Javadoc for BigDecimal.compareTo I did not [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Pearls: Really short production ready class by ajesse</title>
		<link>http://ajesse.wordpress.com/2009/08/10/55/#comment-24</link>
		<dc:creator>ajesse</dc:creator>
		<pubDate>Fri, 28 Aug 2009 17:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/?p=55#comment-24</guid>
		<description>Well we use it in 3 ways: first in the developers IDE, then in the Hudson-build-system and our QA-manager has integrated our checkstyle rules and config with Sotograph.</description>
		<content:encoded><![CDATA[<p>Well we use it in 3 ways: first in the developers IDE, then in the Hudson-build-system and our QA-manager has integrated our checkstyle rules and config with Sotograph.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Pearls: Really short production ready class by Nicolas</title>
		<link>http://ajesse.wordpress.com/2009/08/10/55/#comment-23</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Fri, 28 Aug 2009 06:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/?p=55#comment-23</guid>
		<description>Yeah well checkstyle is a cool toy !
Using it with Hudson?
Cheers
Nicolas from CS</description>
		<content:encoded><![CDATA[<p>Yeah well checkstyle is a cool toy !<br />
Using it with Hudson?<br />
Cheers<br />
Nicolas from CS</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Pearls: Pick the first and only item of a collection by ioss</title>
		<link>http://ajesse.wordpress.com/2009/02/16/java-pearls-pick-the-first-and-only-member-of-a-collection/#comment-22</link>
		<dc:creator>ioss</dc:creator>
		<pubDate>Mon, 22 Jun 2009 02:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/?p=38#comment-22</guid>
		<description>What I do not understand, is why not use recursion on isEqualCausedByNulls?

private static Boolean isEqualsCausedByNulls(Object value1, Object value2) {
    if(value1==value2) {
        return Boolean.TRUE; // sorry I just could not use the ctor....
    }  else if(value1 == null) {
        // value2 can not be null, so recurse into the method to have some code reuse
        return isEqualsCausedByNulls(value2, value1);
    } else if(value2 == null) {
        return Boolean.FALSE;
    } else {
        return null;
    }
}

et voila we got rid of the error prone &#124;&#124; operator

Freue mich auf weitere Perlen,
Imre</description>
		<content:encoded><![CDATA[<p>What I do not understand, is why not use recursion on isEqualCausedByNulls?</p>
<p>private static Boolean isEqualsCausedByNulls(Object value1, Object value2) {<br />
    if(value1==value2) {<br />
        return Boolean.TRUE; // sorry I just could not use the ctor&#8230;.<br />
    }  else if(value1 == null) {<br />
        // value2 can not be null, so recurse into the method to have some code reuse<br />
        return isEqualsCausedByNulls(value2, value1);<br />
    } else if(value2 == null) {<br />
        return Boolean.FALSE;<br />
    } else {<br />
        return null;<br />
    }<br />
}</p>
<p>et voila we got rid of the error prone || operator</p>
<p>Freue mich auf weitere Perlen,<br />
Imre</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unit-testing JSF components with Selenium by Delicious Links - Fun with Java and JavaScript &#124; Chris Degiere and Associates</title>
		<link>http://ajesse.wordpress.com/2007/08/23/unit-testing-jsf-components-with-selenium/#comment-21</link>
		<dc:creator>Delicious Links - Fun with Java and JavaScript &#124; Chris Degiere and Associates</dc:creator>
		<pubDate>Wed, 13 May 2009 05:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/2007/08/23/unit-testing-jsf-components-with-selenium/#comment-21</guid>
		<description>[...] - Unit-testing JSF components with Selenium Â« Musings about this and that ajesse.wordpress.com/2007/08/23/unit-testing-jsf-components-with-selenium/ [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8211; Unit-testing JSF components with Selenium Â« Musings about this and that ajesse.wordpress.com/2007/08/23/unit-testing-jsf-components-with-selenium/ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Preparing your JSF webapp for testing by ajesse</title>
		<link>http://ajesse.wordpress.com/2007/11/06/preparing-your-jsf-webapp-for-testing/#comment-20</link>
		<dc:creator>ajesse</dc:creator>
		<pubDate>Sun, 28 Sep 2008 13:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/2007/11/06/preparing-your-jsf-webapp-for-testing/#comment-20</guid>
		<description>Unfortunately not. So far I have successfully worked against AJAX. I just do not believe there is need for such a thing in a web-application. That means also, that I never have to test AJAX-stuff.
Isn&#039;t Richfaces from JBoss? Then JSFUnit might your ticket for a successfull testing-story. They have explicit support for RichFaces.</description>
		<content:encoded><![CDATA[<p>Unfortunately not. So far I have successfully worked against AJAX. I just do not believe there is need for such a thing in a web-application. That means also, that I never have to test AJAX-stuff.<br />
Isn&#8217;t Richfaces from JBoss? Then JSFUnit might your ticket for a successfull testing-story. They have explicit support for RichFaces.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Preparing your JSF webapp for testing by cronzhong</title>
		<link>http://ajesse.wordpress.com/2007/11/06/preparing-your-jsf-webapp-for-testing/#comment-19</link>
		<dc:creator>cronzhong</dc:creator>
		<pubDate>Sun, 28 Sep 2008 05:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/2007/11/06/preparing-your-jsf-webapp-for-testing/#comment-19</guid>
		<description>Hi Ajesse,

I&#039;m currently using Selenium RC for performance test in JSF pages, but I have two problems to use it. Could you help me?

1. in rich:modal dialog, after click a ajax behind checkbox, the dialog don&#039;t render,
seleHelper.waitElementPresent(&quot;blahblahPerformance:1&quot;);

I have tried several method, but failed
1 try to pause(10000) after click the ajax component
(x)no response
2 try to waitForPageLoad
(x)no response
3 try to waitElementPresent
(x)no response
4 try to while(true) + waitForCondition + isElementPresent
(x)no response, while loop will not end
5 try to modify selenium-api.js, and use isElementPresentOrNull
(x)still no response

2. also in rich:modal dialog, after click the , it cannot call blah, so bloked the main workflow.
JSF page:
     
     

java code
        seleHelper.clickElementByXPathIdNoWait(&quot;btnAddEvent&quot;);
        seleHelper.waitElementPresent(&quot;blahNameNeedRefresh_the_parent&quot;);

seleHelper is an instance of my helper class.
in my helper class:
    public void clickElementByXPathIdNoWait(String id) {
        selenium.click(getXPathStringById(id));
    }    

    private String getXPathStringById(String id) {
        return &quot;xpath=//*[contains(@id,&#039;:&quot; + id + &quot;&#039;)]&quot;;
    }

    public void waitElementPresent(String id){
        String xps = getXPathStringById(id); 
        StringBuffer sb = new StringBuffer();
        sb.append(&quot;selenium.isElementPresent(\&quot;&quot;);
        sb.append(xps);
        sb.append(&quot;\&quot;);&quot;);    
        waitForCondition(sb.toString());
    }
    
    public void waitForCondition(String script){
        selenium.waitForCondition(script, timeout);
    }

Thanks very much</description>
		<content:encoded><![CDATA[<p>Hi Ajesse,</p>
<p>I&#8217;m currently using Selenium RC for performance test in JSF pages, but I have two problems to use it. Could you help me?</p>
<p>1. in rich:modal dialog, after click a ajax behind checkbox, the dialog don&#8217;t render,<br />
seleHelper.waitElementPresent(&#8220;blahblahPerformance:1&#8243;);</p>
<p>I have tried several method, but failed<br />
1 try to pause(10000) after click the ajax component<br />
(x)no response<br />
2 try to waitForPageLoad<br />
(x)no response<br />
3 try to waitElementPresent<br />
(x)no response<br />
4 try to while(true) + waitForCondition + isElementPresent<br />
(x)no response, while loop will not end<br />
5 try to modify selenium-api.js, and use isElementPresentOrNull<br />
(x)still no response</p>
<p>2. also in rich:modal dialog, after click the , it cannot call blah, so bloked the main workflow.<br />
JSF page:</p>
<p>java code<br />
        seleHelper.clickElementByXPathIdNoWait(&#8220;btnAddEvent&#8221;);<br />
        seleHelper.waitElementPresent(&#8220;blahNameNeedRefresh_the_parent&#8221;);</p>
<p>seleHelper is an instance of my helper class.<br />
in my helper class:<br />
    public void clickElementByXPathIdNoWait(String id) {<br />
        selenium.click(getXPathStringById(id));<br />
    }    </p>
<p>    private String getXPathStringById(String id) {<br />
        return &#8220;xpath=//*[contains(@id,':" + id + "')]&#8220;;<br />
    }</p>
<p>    public void waitElementPresent(String id){<br />
        String xps = getXPathStringById(id);<br />
        StringBuffer sb = new StringBuffer();<br />
        sb.append(&#8220;selenium.isElementPresent(\&#8221;");<br />
        sb.append(xps);<br />
        sb.append(&#8220;\&#8221;);&#8221;);<br />
        waitForCondition(sb.toString());<br />
    }</p>
<p>    public void waitForCondition(String script){<br />
        selenium.waitForCondition(script, timeout);<br />
    }</p>
<p>Thanks very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JSF unit testing alternatives by dayg</title>
		<link>http://ajesse.wordpress.com/2007/09/25/jsf-unit-testing-alternatives/#comment-18</link>
		<dc:creator>dayg</dc:creator>
		<pubDate>Wed, 14 May 2008 03:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/2007/09/25/jsf-unit-testing-alternatives/#comment-18</guid>
		<description>As of April 28, 2008 &lt;a href=&quot;http://www.jboss.org/jsfunit/&quot; rel=&quot;nofollow&quot;&gt;JSFUnit&lt;/a&gt; is already in Beta 2. I&#039;m also planning to try this out soon.</description>
		<content:encoded><![CDATA[<p>As of April 28, 2008 <a href="http://www.jboss.org/jsfunit/" rel="nofollow">JSFUnit</a> is already in Beta 2. I&#8217;m also planning to try this out soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JSF Days 08 &#8211; almost over by ajesse</title>
		<link>http://ajesse.wordpress.com/2008/03/14/jsf-days-08-almost-over/#comment-17</link>
		<dc:creator>ajesse</dc:creator>
		<pubDate>Tue, 18 Mar 2008 14:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/?p=18#comment-17</guid>
		<description>The slides are now available from Irian&#039;s website: http://jsfdays2008.irian.at/slidesvideo/pdfs/13_Th_13_Jesse_testing.pdf?conversationContext=1</description>
		<content:encoded><![CDATA[<p>The slides are now available from Irian&#8217;s website: <a href="http://jsfdays2008.irian.at/slidesvideo/pdfs/13_Th_13_Jesse_testing.pdf?conversationContext=1" rel="nofollow">http://jsfdays2008.irian.at/slidesvideo/pdfs/13_Th_13_Jesse_testing.pdf?conversationContext=1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple walkthrough testcase using SeleniumTestCase by ajesse</title>
		<link>http://ajesse.wordpress.com/2007/11/12/simple-walkthrough-testcase-using-my-seleniumtestcase/#comment-16</link>
		<dc:creator>ajesse</dc:creator>
		<pubDate>Fri, 14 Mar 2008 12:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajesse.wordpress.com/2007/11/12/simple-walkthrough-testcase-using-my-seleniumtestcase/#comment-16</guid>
		<description>Do you mean the Selenium Framework, or a complete testcase (a complete java-class as opposed to the excerpts)?</description>
		<content:encoded><![CDATA[<p>Do you mean the Selenium Framework, or a complete testcase (a complete java-class as opposed to the excerpts)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
