blob: bcdc88305d65c5e896ce928b842824bae556cb68 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2007 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.jsf.core.tests.sanity;
import org.eclipse.jst.jsf.core.IJSFCoreConstants;
import org.eclipse.jst.jsf.core.tests.util.JSFFacetedTestEnvironment;
import org.eclipse.jst.jsf.test.util.WebProjectTestEnvironment;
import junit.framework.TestCase;
/**
* This is a sanity test for the utility calss JSFFactedTestEnvironment and is
* not mean to be run as part of the application test suite.
*
* @author cbateman
*
*/
public class TestJSFFacetedTestEnvironment extends TestCase
{
/**
* Test creation of a basic JSF 1.1 faceted test environment
* @throws Exception
*/
public void testVersion_1_1_Facet() throws Exception
{
WebProjectTestEnvironment webTestEnv = new WebProjectTestEnvironment(getName());
webTestEnv.createProject(false);
JSFFacetedTestEnvironment testEnv = new JSFFacetedTestEnvironment(webTestEnv);
testEnv.initialize(IJSFCoreConstants.FACET_VERSION_1_1);
}
/**
* Test creation of a basic JSF 1.1 faceted test environment
* @throws Exception
*/
public void testVersion_1_2_Facet() throws Exception
{
WebProjectTestEnvironment webTestEnv = new WebProjectTestEnvironment(getName());
webTestEnv.createProject(false);
JSFFacetedTestEnvironment testEnv = new JSFFacetedTestEnvironment(webTestEnv);
testEnv.initialize(IJSFCoreConstants.FACET_VERSION_1_2);
}
}