Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

StrutsTestCase and Tiles

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looking for some guidance on using StrutsTestCase with Tiles.

Within struts-config, I have an action entry like so:
<action path="/servicesAndRates" forward=".servicesAndRates" />

.servicesAndRates refers to a tiles definition within an XML file mapped via its plugin definition to Struts.

If I bring up my application, the application resolves the tiles definition appropriately. In my StrutsTestCase,though, I've been unable to verify the tiles forward.

What would be the appropriate mechanism to determine that the action appropriately resolves its configuration?

Notes on what I've tried thusfar, and my attempt at explaining why they don't work:
verifyTilesForward: seems to require a forward as a result of an action, rather than directly via the mapping
verifyForwardPath: gives me the base layout from which my main tiles all derive, and thus not a very good test check
verifyInputTilesForward: since there's no input to return to, this doesn't seem to work.
[ April 05, 2006: Message edited by: Tina Coleman ]
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not much consolation for you, but I can only confirm the same experience of this as you - the forward validation in StrutsTestCase to just doesn't seem to work.
 
You showed up just in time for the waffles! And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic