blob: 9d570b68735ea99a63c0576746af40d0e1229c01 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 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.swt.tests.junit;
import junit.framework.TestCase;
import org.eclipse.swt.accessibility.AccessibleTextEvent;
import org.eclipse.swt.widgets.Shell;
/**
* Automated Test Suite for class org.eclipse.swt.accessibility.AccessibleTextEvent
*
* @see org.eclipse.swt.accessibility.AccessibleTextEvent
*/
public class Test_org_eclipse_swt_accessibility_AccessibleTextEvent extends TestCase {
@Override
protected void setUp() {
shell = new Shell();
}
@Override
protected void tearDown() {
shell.dispose();
}
public void test_ConstructorLjava_lang_Object() {
// The source object should be a widget's accessible.
AccessibleTextEvent event = new AccessibleTextEvent(shell.getAccessible());
assertNotNull(event);
// Test with some other object also.
event = new AccessibleTextEvent(new Integer(5));
assertNotNull(event);
}
public void test_toString() {
AccessibleTextEvent event = new AccessibleTextEvent(shell.getAccessible());
assertNotNull(event.toString());
assertTrue(event.toString().length() > 0);
}
/* custom */
public Shell shell;
}