/*
 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * $Id: TestServlet.java 62525 2011-04-15 12:14:31Z dougd $
 */
package com.sun.ts.tests.jsf.api.javax_faces.event.predestroyviewmapevent;

import com.sun.ts.tests.jsf.api.javax_faces.event.common.BaseComponentSystemEventTestServlet;
import javax.faces.component.UIComponent;
import javax.faces.component.UIViewRoot;
import javax.faces.event.ComponentSystemEvent;

import javax.faces.event.PreDestroyViewMapEvent;

public class TestServlet extends BaseComponentSystemEventTestServlet {

    private static final UIViewRoot UIVR = new UIViewRoot();

    @Override
    protected ComponentSystemEvent createEvent(UIComponent component) {
        return new PreDestroyViewMapEvent((UIViewRoot) component);

    }

    @Override
    protected UIComponent getTestComponent() {
        return UIVR;
    }
    //------------------------------------------------------------ test methods
}
