<?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"
	>
<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>The Toronto Raptors Blog with an Arsenal touch</description>
	<pubDate>Mon, 12 May 2008 07:44:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: vd greg</title>
		<link>http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/#comment-29627</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-29627</guid>
		<description>---Struts.xml-----------------------------------------------

package name="vd" namespace="/vd" extends="something"
    	action name="vdTest" class="vdAction"
           result type="tiles" myTest result
           result name="error" type="tiles" Error result             	
    	action&#62;
package
------------------------------------------------------------
Tiles.xml
definition name="default" template="/WEB-INF/jsp/default.jsp"
   put-attribute name="title"  value="Management System" 
   put-attribute name="header" value="/html/header.html" 
   put-attribute name="menu"   value="/WEB-INF/jsp/menu.jsp" 
   put-attribute name="footer" value="/html/footer.html" 
   put-attribute name="body"   value="/html/main.html" 
definition&#62;
definition name="myTest" extends="default"
    put-attribute name="body" value="/WEB-INF/jsp/vdTest.jsp" 
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-29626</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-29626</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-29625</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-29625</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-29624</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-29624</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-29553</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-29553</guid>
		<description>Resolved. The spring jar file does'n contain the mock jar, is only the core. Must be include the mock jar file in the classpath. Now i'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-29544</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-29544</guid>
		<description>Hi. I'm trying to implement this solution, but i have problem with the import 
"import org.springframework.mock.web.MockHttpServletRequest;", don't recognises and don'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-29237</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-29237</guid>
		<description>arsenalist, 

That´s what i´ve tried : 

private static final String CONFIG_LOCATIONS = 
                            "WEB-INF/web.xml,"+ 		                                                                               "hibernate.cfg.xml," +					          "aplicationContext-dao.xml," +                   			"applicationContext-resources.xml," + 		"applicationContext-service.xml," +					"applicationContext-struts.xml";

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-29235</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-29235</guid>
		<description>Bigster, to load config locations, you can just specify it using the way it'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-29232</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-29232</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-29228</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-29228</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>
