Logically the site I'm building has a number of seperate components and I've packaged them into discrete WAR files. In turn each has its own struts-config file.
Two of the components have a login JSP and action so from a browser I can hit
/componentOne/login and
/componentTwo/login
My problem is the strutstest case (MO or IC) uses the setRequestPathInfo() method requesting "/login". Thr trouble is I have two and it appears to load the first one it finds on the classpath making it kinda hard to have two tests, one for each UI.
Fundamentally the issue appears to be that the setRequestPathInfo() method is passed an action mapping not a URL so I can't scope the different between the two URLs.
I guess I could combine the two WARs into a single one and have unique action mappings
/componentOneLogin and
/componentTwoLogin (note no '/' any more)
but it seems to be a good idea to seperate the UI components into discrbut bundles. How then can I test this with strutstest?
All help and comments welcome
-s
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logically the site I'm building has a number of seperate components and I've packaged them into discrete WAR files. In turn each has its own struts-config file.
Two of the components have a login JSP and action so from a browser I can hit
/componentOne/login and
/componentTwo/login
My problem is the strutstest case (MO or IC) uses the setRequestPathInfo() method requesting "/login". Thr trouble is I have two and it appears to load the first one it finds on the classpath making it kinda hard to have two tests, one for each UI.
Fundamentally the issue appears to be that the setRequestPathInfo() method is passed an action mapping not a URL so I can't scope the different between the two URLs.
I guess I could combine the two WARs into a single one and have unique action mappings
/componentOneLogin and
/componentTwoLogin (note no '/' any more)
but it seems to be a good idea to seperate the UI components into discrbut bundles. How then can I test this with strutstest?
All help and comments welcome
-s