Mock JAVA web-application using struts-hibernate
Posted by hatim
On my new job's first project, I am to be a part of an team which is to devlop an ERP application following the ISA-95 standard. We are basically trying to achieve what another organization failed to achieve using similar technologies (perhaps due to technical mismanagement, as they like to call it falling under the budget). It was decided that uptodate and best practices would be followed in making of this application. Following the contemprary application devlopment scene we chose to go with Web Based front end for the application over Java EE (or alike platform). Since the application is to be based solely on open source technologies we had to research our options. We initially went with Struts 1.x just to get a feel of how MVC would work. We also decided on methodology (ie 30% effort on design , 40 % implementation and 30% QA) and followed it to the best. I was more involved with the Unit testing part of this mock application using struts-test.
We chose MyEclipse, Struts 1.x, and Hibernate for this task. I had previously read about Struts but never really worked on it. So this was essentially my first experience with it. Although it seems like a decent framework, but I fail to see how it could have swept so many people away. Perhaps it was first of its kind providing application developers with options unheard of at that time. But nothing is new these days which is provided by barebone Struts 1.x. Perhaps I am dead wrong and I have not explored to elegance and depth of Struts, but rest assured that I wont be any time soon. It seems that the actual project would be Spring-Hibernate based.
I was more focused on the Unit Testin part of the project. UnitTesting of a struts app can be done via Struts-Test which is an extension of JUnit. It provide capabilities for Mock HTTP testing.
Update : After reading bit on Matt Raible's site , I would in future evaluet Strurt2 as well