/** @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> */
public class WeatherPortletTestCase extends WeatherTestCase {
@Deployment
public static WebArchive deployment() {
DescriptorBuilder desc = DescriptorBuilder.DEFAULT.
injector(InjectorProvider.SPRING).
embedPortletContainer().
listener("org.springframework.web.context.ContextLoaderListener");
String webXml = desc.toWebXml();
WebArchive war = ShrinkWrap.create(WebArchive.class);
war.setWebXML(new StringAsset(webXml));
war.addAsWebInfResource(new File("src/test/resources/applicationContext.xml"));
war.addAsWebInfResource(new File("src/main/webapp/WEB-INF/portlet.xml"));
war.addPackages(true, "examples.tutorial");