package org.jboss.tools.jsf.vpe.richfaces.test; import org.eclipse.core.resources.IFile; import org.eclipse.ui.PartInitException; import org.jboss.tools.vpe.base.test.TestUtil; import org.jboss.tools.vpe.base.test.VpeTest; import org.junit.Test; /** * Test case for testing {@link RichFacesFileUploadTemplateTestCase}. * * @author Eugene Stherbin */ public class RichFacesFileUploadTemplateTestCase extends VpeTest { /** The Constant COMPONENTS_FILE_UPLOAD_FILE_UPLOAD_BASE. */ private static final String COMPONENTS_FILE_UPLOAD_FILE_UPLOAD_BASE = "components/fileUpload/fileUpload.xhtml"; //$NON-NLS-1$ /** * The Constructor. * * @param name * the name */ public RichFacesFileUploadTemplateTestCase() { setCheckWarning(false); } /** * Test file upload. * * @throws PartInitException * the part init exception * @throws Throwable * the throwable */ @Test public void testBaseFileUpload() throws PartInitException, Throwable { performTestForVpeComponent((IFile) TestUtil.getComponentPath(COMPONENTS_FILE_UPLOAD_FILE_UPLOAD_BASE, RichFacesAllTests.IMPORT_PROJECT_NAME)); } }