edu.rice.cs.drjava.ui
Class MainFrameTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--edu.rice.cs.drjava.ui.MainFrameTest
- All Implemented Interfaces:
- Test
- public class MainFrameTest
- extends TestCase
Test functions of MainFrame.
- Version:
- $Id: MainFrameTest.java,v 1.3 2002/09/04 21:02:19 csreis Exp $
Method Summary |
void |
setUp()
Setup method for each JUnit test case. |
static Test |
suite()
Creates a test suite for JUnit to run. |
void |
testCreateManualToolbarButton()
Tests that the returned JButton of createManualToolbarButton :
1. |
void |
testDocLocationAfterSwitch()
Tests that the current location of a document is equal to the
caret location after documents are switched. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
_frame
private MainFrame _frame
MainFrameTest
public MainFrameTest(String name)
- Constructor.
- Parameters:
String
- name
suite
public static Test suite()
- Creates a test suite for JUnit to run.
- Returns:
- a test suite based on the methods in this class
setUp
public void setUp()
- Setup method for each JUnit test case.
- Overrides:
setUp
in class TestCase
testCreateManualToolbarButton
public void testCreateManualToolbarButton()
- Tests that the returned JButton of
createManualToolbarButton
:
1. Is disabled upon return.
2. Inherits the tooltip of the Action parameter a
.
testDocLocationAfterSwitch
public void testDocLocationAfterSwitch()
throws BadLocationException,
InterruptedException
- Tests that the current location of a document is equal to the
caret location after documents are switched.