* @see junit.framework.TestCase#tearDown()
*/
public void tearDown() throws Exception
{
manager = new TomcatManager("", "", 0, "", 0, "", "");
FileSystemPAM pam = new FileSystemPAM(webAppsDir, portletRegistry, entityAccess, windowAccess, portletCache, manager);
try
{
DirectoryHelper dirHelper = new DirectoryHelper(new File(webAppsDir + "/" + TEST_PORTLET_APP_NAME));
paWar1 = new PortletApplicationWar(dirHelper, TEST_PORTLET_APP_NAME, "/"
+ TEST_PORTLET_APP_NAME);
pam.undeploy(paWar1);
}
catch (Exception e1)
{
}
pam.unregister("jetspeed");
try
{
DirectoryHelper dirHelper = new DirectoryHelper(new File(webAppsDir + "/TestSecurityRoles"));
paWar3 = new PortletApplicationWar(dirHelper, "TestSecurityRoles", "/TestSecurityRoles" );
pam.undeploy(paWar3);
}
catch (Exception e3)
{
}