/*******************************************************************************
* Copyright (c) 2007-2008 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributor:
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
package org.jboss.tools.jsf.vpe.jsf.test;
import java.io.File;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.jboss.tools.test.util.ResourcesUtils;
import org.jboss.tools.vpe.base.test.ComponentContentTest;
import org.junit.Test;
/**
* Performs tests for JavaServer Faces 2.0
*
* @author yradtsevich
*
*/
public class Jsf20ComponentContentTest extends ComponentContentTest {
public Jsf20ComponentContentTest() {
setCheckWarning(false);
}
@Test
public void testAjax() throws Throwable {
performInvisibleTagTest("components/ajax.xhtml", "ajax1"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Test
public void testEvent() throws Throwable {
performInvisibleTagTest("components/event.xhtml", "event1"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Test
public void testValidateBean() throws Throwable {
performInvisibleTagTest("components/validateBean.xhtml", "validateBean1"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Test
public void testValidateRequired() throws Throwable {
performInvisibleTagTest("components/validateRequired.xhtml", "validateRequired1"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Test
public void testViewParam() throws Throwable {
performInvisibleTagTest("components/viewParam.xhtml", "viewParam1"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Test
public void testMetadata() throws Throwable {
performInvisibleTagTest("components/metadata.xhtml", "metadata1"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Test
public void testBody1() throws Throwable {
performContentTest("components/body1.xhtml"); //$NON-NLS-1$
}
@Test
public void testBody2() throws Throwable {
performContentTest("components/body2.xhtml"); //$NON-NLS-1$
}
@Test
public void testGraphicImage() throws Throwable {
performContentTest("components/graphicImage.xhtml"); //$NON-NLS-1$
}
@Test
public void testHead1() throws Throwable {
performContentTest("components/head1.xhtml"); //$NON-NLS-1$
}
@Test
public void testHead2() throws Throwable {
performContentTest("components/head2.xhtml"); //$NON-NLS-1$
}
@Test
public void testButton() throws Throwable {
performContentTest("components/button.xhtml"); //$NON-NLS-1$
}
@Test
public void testLink() throws Throwable {
performContentTest("components/link.xhtml"); //$NON-NLS-1$
performInvisibleTagTest("components/link.xhtml", "link4"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Test
public void testOutputScript() throws Throwable {
performInvisibleTagTest("components/outputScript.xhtml", "outputScript1"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Test
public void testOutputStylesheet() throws Throwable {
performInvisibleTagTest("components/outputStylesheet.xhtml", "outputStylesheetBlue"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Override
protected String getTestProjectName() {
return JsfAllTests.IMPORT_JSF_20_PROJECT_NAME;
}
}