<?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/"
		>
<channel>
	<title>Comments on: Unit Testing Struts 2 Actions wired with Spring using JUnit</title>
	<atom:link href="http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/feed/" rel="self" type="application/rss+xml" />
	<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/</link>
	<description>Gunning From Toronto</description>
	<lastBuildDate>Sun, 12 Feb 2012 16:33:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: vd greg</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-560</link>
		<dc:creator>vd greg</dc:creator>
		<pubDate>Mon, 07 Apr 2008 20:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-560</guid>
		<description>---Struts.xml-----------------------------------------------

package name=&quot;vd&quot; namespace=&quot;/vd&quot; extends=&quot;something&quot;
    	action name=&quot;vdTest&quot; class=&quot;vdAction&quot;
           result type=&quot;tiles&quot; myTest result
           result name=&quot;error&quot; type=&quot;tiles&quot; Error result
    	action&gt;
package
------------------------------------------------------------
Tiles.xml
definition name=&quot;default&quot; template=&quot;/WEB-INF/jsp/default.jsp&quot;
   put-attribute name=&quot;title&quot;  value=&quot;Management System&quot;
   put-attribute name=&quot;header&quot; value=&quot;/html/header.html&quot;
   put-attribute name=&quot;menu&quot;   value=&quot;/WEB-INF/jsp/menu.jsp&quot;
   put-attribute name=&quot;footer&quot; value=&quot;/html/footer.html&quot;
   put-attribute name=&quot;body&quot;   value=&quot;/html/main.html&quot;
definition&gt;
definition name=&quot;myTest&quot; extends=&quot;default&quot;
    put-attribute name=&quot;body&quot; value=&quot;/WEB-INF/jsp/vdTest.jsp&quot;
definition</description>
		<content:encoded><![CDATA[<p>&#8212;Struts.xml&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>package name=&#8221;vd&#8221; namespace=&#8221;/vd&#8221; extends=&#8221;something&#8221;<br />
    	action name=&#8221;vdTest&#8221; class=&#8221;vdAction&#8221;<br />
           result type=&#8221;tiles&#8221; myTest result<br />
           result name=&#8221;error&#8221; type=&#8221;tiles&#8221; Error result<br />
    	action&gt;<br />
package<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Tiles.xml<br />
definition name=&#8221;default&#8221; template=&#8221;/WEB-INF/jsp/default.jsp&#8221;<br />
   put-attribute name=&#8221;title&#8221;  value=&#8221;Management System&#8221;<br />
   put-attribute name=&#8221;header&#8221; value=&#8221;/html/header.html&#8221;<br />
   put-attribute name=&#8221;menu&#8221;   value=&#8221;/WEB-INF/jsp/menu.jsp&#8221;<br />
   put-attribute name=&#8221;footer&#8221; value=&#8221;/html/footer.html&#8221;<br />
   put-attribute name=&#8221;body&#8221;   value=&#8221;/html/main.html&#8221;<br />
definition&gt;<br />
definition name=&#8221;myTest&#8221; extends=&#8221;default&#8221;<br />
    put-attribute name=&#8221;body&#8221; value=&#8221;/WEB-INF/jsp/vdTest.jsp&#8221;<br />
definition</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vd greg</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-559</link>
		<dc:creator>vd greg</dc:creator>
		<pubDate>Mon, 07 Apr 2008 20:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-559</guid>
		<description>&lt;code&gt;
---Struts.xml-----------------------------------------------



            myTest
            Error


------------------------------------------------------------
Tiles.xml











&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code><br />
---Struts.xml-----------------------------------------------</p>
<p>            myTest<br />
            Error</p>
<p>------------------------------------------------------------<br />
Tiles.xml</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vd greg</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-558</link>
		<dc:creator>vd greg</dc:creator>
		<pubDate>Mon, 07 Apr 2008 20:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-558</guid>
		<description>Hi I am very new to struts2. I am using tiles and like to use your code to develop some test cases for my application. The problem is I was using any namespace tag before in the package area.
So when I use namespace tag and put some value in it, the body jsp displayed but not the left menu, top menu and etc.

Why other jsp are not getting displayed?
---Struts.xml-----------------------------------------------



            myTest
            Error


------------------------------------------------------------
Tiles.xml</description>
		<content:encoded><![CDATA[<p>Hi I am very new to struts2. I am using tiles and like to use your code to develop some test cases for my application. The problem is I was using any namespace tag before in the package area.<br />
So when I use namespace tag and put some value in it, the body jsp displayed but not the left menu, top menu and etc.</p>
<p>Why other jsp are not getting displayed?<br />
&#8212;Struts.xml&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>            myTest<br />
            Error</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Tiles.xml</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vd greg</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-557</link>
		<dc:creator>vd greg</dc:creator>
		<pubDate>Mon, 07 Apr 2008 20:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-557</guid>
		<description>Hi I am very new to struts2. I am using tiles and like to use your code to develop some test cases for my application. The problem is I was using any namespace tag before in the package area.
So when I use namespace tag and put some value in it, the body jsp displayed but not the left menu, top menu and etc.

Why other jsp are not getting displayed?
---Struts.xml-----------------------------------------------


            myTest
            Error


------------------------------------------------------------
Tiles.xml</description>
		<content:encoded><![CDATA[<p>Hi I am very new to struts2. I am using tiles and like to use your code to develop some test cases for my application. The problem is I was using any namespace tag before in the package area.<br />
So when I use namespace tag and put some value in it, the body jsp displayed but not the left menu, top menu and etc.</p>
<p>Why other jsp are not getting displayed?<br />
&#8212;Struts.xml&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>            myTest<br />
            Error</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Tiles.xml</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tavo</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-556</link>
		<dc:creator>Tavo</dc:creator>
		<pubDate>Thu, 03 Apr 2008 20:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-556</guid>
		<description>Resolved. The spring jar file does&#039;n contain the mock jar, is only the core. Must be include the mock jar file in the classpath. Now i&#039;m trying the test my classes. Thks.</description>
		<content:encoded><![CDATA[<p>Resolved. The spring jar file does&#8217;n contain the mock jar, is only the core. Must be include the mock jar file in the classpath. Now i&#8217;m trying the test my classes. Thks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tavo</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-555</link>
		<dc:creator>Tavo</dc:creator>
		<pubDate>Thu, 03 Apr 2008 15:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-555</guid>
		<description>Hi. I&#039;m trying to implement this solution, but i have problem with the import
&quot;import org.springframework.mock.web.MockHttpServletRequest;&quot;, don&#039;t recognises and don&#039;t exist in spring 2.0.4 jar file. Any idea?. Congratulations Arsenal and thank you for your article.</description>
		<content:encoded><![CDATA[<p>Hi. I&#8217;m trying to implement this solution, but i have problem with the import<br />
&#8220;import org.springframework.mock.web.MockHttpServletRequest;&#8221;, don&#8217;t recognises and don&#8217;t exist in spring 2.0.4 jar file. Any idea?. Congratulations Arsenal and thank you for your article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bigster</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-554</link>
		<dc:creator>Bigster</dc:creator>
		<pubDate>Wed, 26 Mar 2008 14:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-554</guid>
		<description>arsenalist,

That´s what i´ve tried :

private static final String CONFIG_LOCATIONS =
                            &quot;WEB-INF/web.xml,&quot;+ 		                                                                               &quot;hibernate.cfg.xml,&quot; +					          &quot;aplicationContext-dao.xml,&quot; +                   			&quot;applicationContext-resources.xml,&quot; + 		&quot;applicationContext-service.xml,&quot; +					&quot;applicationContext-struts.xml&quot;;

it throws a FileNotfoundExecption, it don´t find tha web.xml in the WEB-INF folder.

any help?</description>
		<content:encoded><![CDATA[<p>arsenalist,</p>
<p>That´s what i´ve tried :</p>
<p>private static final String CONFIG_LOCATIONS =<br />
                            &#8220;WEB-INF/web.xml,&#8221;+ 		                                                                               &#8220;hibernate.cfg.xml,&#8221; +					          &#8220;aplicationContext-dao.xml,&#8221; +                   			&#8220;applicationContext-resources.xml,&#8221; + 		&#8220;applicationContext-service.xml,&#8221; +					&#8220;applicationContext-struts.xml&#8221;;</p>
<p>it throws a FileNotfoundExecption, it don´t find tha web.xml in the WEB-INF folder.</p>
<p>any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arsenalist</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-553</link>
		<dc:creator>arsenalist</dc:creator>
		<pubDate>Wed, 26 Mar 2008 13:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-553</guid>
		<description>Bigster, to load config locations, you can just specify it using the way it&#039;s shown in Line 75 of the setUp() method.

&lt;code&gt;servletContext.addInitParameter(ContextLoader.CONFIG_LOCATION_PARAM, CONFIG_LOCATIONS);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Bigster, to load config locations, you can just specify it using the way it&#8217;s shown in Line 75 of the setUp() method.</p>
<p><code>servletContext.addInitParameter(ContextLoader.CONFIG_LOCATION_PARAM, CONFIG_LOCATIONS);</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bigster</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-552</link>
		<dc:creator>Bigster</dc:creator>
		<pubDate>Wed, 26 Mar 2008 11:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-552</guid>
		<description>Hi all,

I´ve read the posts, and someone has the need to put in the CONFIG_LOCATIONS the web-xml?

I´ve there de JNDI datasources needed by Spring.

How, based in the example, could i load to the classpath the web.xml??

cheers</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>I´ve read the posts, and someone has the need to put in the CONFIG_LOCATIONS the web-xml?</p>
<p>I´ve there de JNDI datasources needed by Spring.</p>
<p>How, based in the example, could i load to the classpath the web.xml??</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-551</link>
		<dc:creator>Krishna</dc:creator>
		<pubDate>Wed, 26 Mar 2008 06:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-551</guid>
		<description>somebody copied your article word by word here http://itefforts.blogspot.com/2007/08/struts2-spring-junit.html</description>
		<content:encoded><![CDATA[<p>somebody copied your article word by word here <a href="http://itefforts.blogspot.com/2007/08/struts2-spring-junit.html" rel="nofollow">http://itefforts.blogspot.com/2007/08/struts2-spring-junit.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/5 queries in 0.002 seconds using disk
Object Caching 286/290 objects using disk

Served from: arsenalist.com @ 2012-02-12 13:24:03 -->
