autoDeployment.fireRedeploymentEvent();
long afterSize = new File(demoAppDeployedDir.getRootDirectory(), "WEB-INF/portlet.xml").length();
// The portlet.xml in re-deploy has an additional portlet entry in portlet.xml, so it should be bigger
assertTrue(afterSize > beforeSize);
autoDeployment.stop();
}
public void testUndeployVersusRedeploy() throws Exception