blob: a3507698b9f4fa40d883cb4556d6112e6793eecd [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are 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
*
* Contributors:
* IBM Corporation - Initial API and implementation
*******************************************************************************/
package org.eclipse.wst.server.ui.tests.wizard;
import org.eclipse.wst.server.ui.tests.OrderedTestSuite;
import org.eclipse.wst.server.ui.wizard.WizardFragment;
import junit.framework.Test;
import junit.framework.TestCase;
public class WizardFragmentTestCase extends TestCase {
protected static WizardFragment fragment;
public static Test suite() {
return new OrderedTestSuite(WizardFragmentTestCase.class, "WizardFragmentTestCase");
}
public void test00CreateFragment() {
fragment = new WizardFragment() {
// do nothing
};
}
public void test01HasComposite() {
fragment.hasComposite();
}
public void test02CreateComposite() {
fragment.createComposite(null, null);
}
public void test03SetTaskModel() {
fragment.setTaskModel(null);
}
public void test04GetTaskModel() {
fragment.getTaskModel();
}
public void test05Enter() {
fragment.enter();
}
public void test06Exit() {
fragment.exit();
}
public void test09GetChildFragments() {
fragment.getChildFragments();
}
public void test10IsComplete() {
fragment.isComplete();
}
public void test11TestProtected() {
class MyWizardFragment extends WizardFragment {
public void testProtected() {
updateChildFragments();
createChildFragments(null);
setComplete(false);
}
}
MyWizardFragment mwf = new MyWizardFragment();
mwf.testProtected();
}
}