| edu.rice.cs.drjava.DrJavaTestCase edu.rice.cs.drjava.config.KeyStrokeOptionTest
KeyStrokeOptionTest | final public class KeyStrokeOptionTest extends DrJavaTestCase (Code) | | Class according to the JUnit protocol. Tests the proper functionality of the class KeyStrokeOption.
version: $Id: KeyStrokeOptionTest.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
public static void | main(String[] args) Main method to be called by testLocalSpecificFormat. | public void | testFormat() Test the format method by comparing a KeyStroke object to itself after it has been formatted to a string and
parsed back into a KeyStroke object. | public void | testGetName() | public void | testLocaleSpecificFormat() Tests that key strokes are output in a parseable format even in foreign locales. | public void | testParse() |
KeyStrokeOptionTest | public KeyStrokeOptionTest(String name)(Code) | | Parameters: name - The name of this test case. |
main | public static void main(String[] args)(Code) | | Main method to be called by testLocalSpecificFormat. Runs in a new JVM so as not to affect the locale of other
tests.
|
testFormat | public void testFormat()(Code) | | Test the format method by comparing a KeyStroke object to itself after it has been formatted to a string and
parsed back into a KeyStroke object. We cannot compare strings because format always puts the modifiers in the
same order which could be a different order than the user specifies.
|
testGetName | public void testGetName()(Code) | | |
testLocaleSpecificFormat | public void testLocaleSpecificFormat() throws IOException, InterruptedException(Code) | | Tests that key strokes are output in a parseable format even in foreign locales. The test must be run in a
separate JVM, because once the locale is set, it cannot be set back. (If someone can figure out how
to effectively set it back, feel free to remove this hack!)
|
testParse | public void testParse()(Code) | | |
Fields inherited from edu.rice.cs.drjava.DrJavaTestCase | final public static String TEST_DRJAVA_CONFIG_PROPERTY(Code)(Java Doc)
|
|
|