blob: 880c0991d4036e8c7130130e711df07110ec9a07 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.tests.junit.performance;
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import junit.framework.*;
import junit.textui.*;
/**
* Automated Performance Test Suite for class org.eclipse.swt.widgets.Button
*
* @see org.eclipse.swt.widgets.Button
*/
public class Test_org_eclipse_swt_widgets_Button extends Test_org_eclipse_swt_widgets_Control {
Button button;
public Test_org_eclipse_swt_widgets_Button(String name) {
super(name);
}
public static void main(String[] args) {
TestRunner.run(suite());
}
protected void setUp() {
super.setUp();
button = new Button(shell, SWT.PUSH);
setWidget(button);
}
protected void tearDown() {
super.tearDown();
}
public void test_ConstructorLorg_eclipse_swt_widgets_CompositeI() {
// TODO
}
public void test_getAlignment() {
// TODO
}
public void test_getImage() {
// TODO
}
public void test_getSelection() {
// TODO
}
public void test_getText() {
// TODO
}
public void test_setAlignmentI() {
// TODO
}
public void test_setFocus() {
// TODO
}
public void test_setImageLorg_eclipse_swt_graphics_Image() {
// TODO
}
public void test_setSelectionZ() {
// TODO
}
public void test_setTextLjava_lang_String() {
// TODO
}
public static Test suite() {
TestSuite suite = new TestSuite();
java.util.Vector methodNames = methodNames();
java.util.Enumeration e = methodNames.elements();
while (e.hasMoreElements()) {
suite.addTest(new Test_org_eclipse_swt_widgets_Button((String)e.nextElement()));
}
return suite;
}
public static java.util.Vector methodNames() {
java.util.Vector methodNames = new java.util.Vector();
methodNames.addElement("test_ConstructorLorg_eclipse_swt_widgets_CompositeI");
methodNames.addElement("test_getAlignment");
methodNames.addElement("test_getImage");
methodNames.addElement("test_getSelection");
methodNames.addElement("test_getText");
methodNames.addElement("test_setAlignmentI");
methodNames.addElement("test_setFocus");
methodNames.addElement("test_setImageLorg_eclipse_swt_graphics_Image");
methodNames.addElement("test_setSelectionZ");
methodNames.addElement("test_setTextLjava_lang_String");
methodNames.addAll(Test_org_eclipse_swt_widgets_Control.methodNames()); // add superclass method names
return methodNames;
}
protected void runTest() throws Throwable {
if (getName().equals("test_ConstructorLorg_eclipse_swt_widgets_CompositeI")) test_ConstructorLorg_eclipse_swt_widgets_CompositeI();
else if (getName().equals("test_getAlignment")) test_getAlignment();
else if (getName().equals("test_getImage")) test_getImage();
else if (getName().equals("test_getSelection")) test_getSelection();
else if (getName().equals("test_getText")) test_getText();
else if (getName().equals("test_setAlignmentI")) test_setAlignmentI();
else if (getName().equals("test_setFocus")) test_setFocus();
else if (getName().equals("test_setImageLorg_eclipse_swt_graphics_Image")) test_setImageLorg_eclipse_swt_graphics_Image();
else if (getName().equals("test_setSelectionZ")) test_setSelectionZ();
else if (getName().equals("test_setTextLjava_lang_String")) test_setTextLjava_lang_String();
else super.runTest();
}
}