Hi Before I list out my problem thank you stephan for pointing me in the right direction.I have been sucessful in writing tests for action classes. Unfortunately I have got stuck at writing unit tests for ServerPagesGenerator. I have used the SiteComponentTestcase as the basis for all tests.
When i am calling the generate method to test for ServerPagesGenerator, I am getting errors. As far as i can understand from ServerPagesGenerator it goes to ProgramGeneratorImpl and at the method public void contextualize(Context context) throws ContextException the program stops Error is Unable to resolve context key: work-directory I understand that the ProgramGeneratorImpl will search for "work-directory" but i am not able to understand how to configure it in my .xtest file. And if i configure it then do i have to have a WEB-INF/work directory in my directory structure?? As of now I have one structure for src and one for tests . Could anyone Help me out with this one. ??? Thank you Ann Jose
