/******************************************************************************* * Copyright (c) 2007-2009 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.ajax4jsf.test; import org.jboss.tools.vpe.base.test.ComponentContentTest; import org.jboss.tools.vpe.base.test.VpeTest; import org.junit.Ignore; import org.junit.Test; import static org.junit.Assume.*; import static org.hamcrest.core.Is.*; public class Ajax4JsfComponentContentTest extends ComponentContentTest { public Ajax4JsfComponentContentTest() { setCheckWarning(false); } @Test public void testAjaxListener() throws Throwable { performInvisibleTagTest("components/ajaxListener.xhtml", "ajaxListener"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testKeepAlive() throws Throwable { performInvisibleTagTest("components/keepAlive.xhtml", "keepAlive");//$NON-NLS-1$ //$NON-NLS-2$ } @Test public void _testActionparam() throws Throwable { performInvisibleTagTest("components/actionparam.xhtml", "actionparam1"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testCommandButton() throws Throwable { performContentTest("components/commandButton.xhtml");//$NON-NLS-1$ } @Test public void testCommandLink() throws Throwable { performContentTest("components/commandLink.xhtml");//$NON-NLS-1$ } @Ignore("JBIDE-23065 test failure in org.jboss.tools.jsf.vpe.jsf.test") @Test public void _testForm() throws Throwable { performContentTest("components/form.xhtml");//$NON-NLS-1$ } @Test public void testHtmlCommandLink() throws Throwable { performContentTest("components/htmlCommandLink.xhtml");//$NON-NLS-1$ } @Test public void testJsFunction() throws Throwable { performInvisibleTagTest("components/jsFunction.xhtml", "jsFunction"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testInclude() throws Throwable { performContentTest("components/include.xhtml");//$NON-NLS-1$ } @Test public void testLoadBundle() throws Throwable { performInvisibleTagTest("components/loadBundle.xhtml", "loadBundle"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testLoadScript() throws Throwable { performInvisibleTagTest("components/loadScript.xhtml", "loadScript"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testLoadStyle() throws Throwable { performInvisibleTagTest("components/loadStyle.xhtml", "loadStyle"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testLog() throws Throwable { performContentTest("components/log.xhtml"); //$NON-NLS-1$ } @Test public void testMediaOutput() throws Throwable { performContentTest("components/mediaOutput.xhtml");//$NON-NLS-1$ } @Test public void testOutputPanel() throws Throwable { } @Ignore("JBIDE-23065 test failure in org.jboss.tools.jsf.vpe.jsf.test") @Test public void _testPage() throws Throwable { performContentTest("components/page/page.xhtml");//$NON-NLS-1$ } @Test public void testPoll() throws Throwable { performInvisibleTagTest("components/poll.xhtml", "poll"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testPortlet() throws Throwable { performContentTest("components/portlet.xhtml");//$NON-NLS-1$ } @Test public void testPush() throws Throwable { performInvisibleTagTest("components/push.xhtml", "push"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testQueue() throws Throwable { performInvisibleTagTest("components/queue.jsp", "a4jQueue"); //$NON-NLS-1$ //$NON-NLS-2$ } @Ignore @Test public void _testRegion() throws Throwable { performContentTest("components/region.xhtml");//$NON-NLS-1$ } @Test public void testRepeat() throws Throwable { performInvisibleTagTest("components/repeat.xhtml", "repeat"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testStatus() throws Throwable { performContentTest("components/status.xhtml");//$NON-NLS-1$ } @Test public void testSupport() throws Throwable { performInvisibleTagTest("components/support.xhtml", "support"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testActionListener() throws Throwable { performInvisibleTagTest( "components/actionListener.xhtml", "actionListener"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testAjax() throws Throwable { performInvisibleTagTest("components/ajax.xhtml", "ajax"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testAttachQueue() throws Throwable { performInvisibleTagTest("components/attachQueue.xhtml", "attachQueue"); //$NON-NLS-1$ //$NON-NLS-2$ } @Test public void testParam() throws Throwable { performInvisibleTagTest("components/param.xhtml", "param"); //$NON-NLS-1$ //$NON-NLS-2$ } protected String getTestProjectName() { return Ajax4JsfAllTests.IMPORT_PROJECT_NAME; } }