| /******************************************************************************* |
| * Copyright (c) 2001, 2010 Oracle Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Oracle Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.jst.pagedesigner.tests.tagcreator; |
| |
| import org.eclipse.jst.jsf.core.internal.tld.IJSFConstants; |
| import org.eclipse.jst.jsf.core.tests.util.JSFCoreUtilHelper; |
| import org.eclipse.jst.pagedesigner.tests.tagcreator.base.BaseItemCreationToolTestCase; |
| |
| public class TestItemCreationToolForJSFHTML extends BaseItemCreationToolTestCase |
| { |
| public TestItemCreationToolForJSFHTML() |
| { |
| super("jsf"); |
| } |
| |
| @Override |
| protected void setUp() throws Exception |
| { |
| super.setUp(); |
| } |
| |
| @Override |
| protected void tearDown() throws Exception |
| { |
| super.tearDown(); |
| } |
| |
| public void testCreateButton() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_COMMANDBUTTON, "jsp", "jsp", 358,false); |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_COMMANDBUTTON, "jspx", "jspx", 495,false); |
| |
| JSFCoreUtilHelper.injectTestTagRegistryFactoryProvider(JSFCoreUtilHelper.createSimpleRegistryFactory()); |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_COMMANDBUTTON, "xhtml", "xhtml", 350,false); |
| JSFCoreUtilHelper.injectTestTagRegistryFactoryProvider(null); |
| } |
| |
| public void testCreateCommandLink() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_COMMANDLINK, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreatePanelGrid() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_PANEL_GRID, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateDataTable() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_DATA_TABLE, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateForm() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_FORM, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateGraphicImage() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_GRAPHICIMAGE, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateInputHidden() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_INPUTHIDDEN, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateMessage() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_MESSAGE, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateMessages() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_MESSAGES, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateOutputFormat() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_OUTPUTFORMAT, "jsp", "jsp", 358,true); |
| } |
| |
| public void testCreateOutputLabel() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_OUTPUTLABEL, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateOutputText() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_OUTPUTTEXT, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreatePanelGroup() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_PANEL_GROUP, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateInputSecret() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_INPUTSECRET, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateSelectBooleanCheckbox() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_SELECTBOOLEANCHECKBOX, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateSelectManyCheckbox() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_SELECTMANYCHECKBOX, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateSelectManyListbox() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_SELECTMANYLISTBOX, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateSelectManyMenu() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_SELECTMANYMENU, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateSelectOneListbox() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_SELECTONELISTBOX, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateSelectOneMenu() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_SELECTONEMENU, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateSelectOneRadio() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_SELECTONERADIO, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateInputText() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_INPUTTEXT, "jsp", "jsp", 358,false); |
| } |
| |
| public void testCreateInputTextArea() throws Exception |
| { |
| doCreateTest(IJSFConstants.TAG_IDENTIFIER_INPUTTEXTAREA, "jsp", "jsp", 358,false); |
| } |
| |
| } |