|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.springframework.richclient.core.LabelInfoTests
public class LabelInfoTests
Provides a suite of unit tests for the LabelInfo
class.
Constructor Summary | |
---|---|
LabelInfoTests()
Creates a new LabelInfoTests . |
Method Summary | |
---|---|
static void |
pass()
|
void |
testConfigureLabel()
|
void |
testConfigureLabelFor()
|
void |
testConfigureLabelForJPanel()
|
void |
testConfigureLabelForWithColon()
|
void |
testConfigureLabelNull()
|
void |
testConstructor()
|
void |
testConstructorEmptyText()
|
void |
testConstructorMnemonicIndexGreaterThanLength()
|
void |
testConstructorNegativeMnemonic()
|
void |
testConstructorNegativeMnemonicIndex()
|
void |
testConstructorNullText()
|
void |
testEquals()
|
void |
testForAtSymbols()
Confirms that any @ symbols, used by the CommandButtonLabelInfo, will not be given special treatment by a LabelInfo. |
void |
testForEscapedAmpersands()
Confirms that any ampersands escaped with a backslash character appear as text in the label. |
void |
testForEscapedBackslashes()
Confirms that any backslashes escaped with a backslash character appear as text in the label. |
void |
testForNullOrEmptyInput()
Confirms that null or empty input will result in a LabelInfo instance with a blank text label and no specified mnemonic. |
void |
testHashCode()
|
void |
testInvalidSyntax()
Confirms that exceptions are thrown for label descriptors that violate the syntax rules. |
void |
testValueOfWithValidSyntax()
Confirms that a label descriptor with various special characters produces a LabelInfo with expected values for mnemonic and mnemonicIndex. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LabelInfoTests()
LabelInfoTests
.
Method Detail |
---|
public void testForNullOrEmptyInput()
public void testValueOfWithValidSyntax()
public void testInvalidSyntax()
public void testForEscapedAmpersands()
public void testForEscapedBackslashes()
public void testForAtSymbols()
public void testConstructor()
public void testEquals() throws Exception
Exception
public void testHashCode() throws Exception
Exception
public void testConstructorEmptyText()
public void testConstructorNullText()
public void testConstructorNegativeMnemonic()
public void testConfigureLabel()
public void testConfigureLabelNull()
public void testConfigureLabelFor()
public void testConfigureLabelForWithColon()
public void testConfigureLabelForJPanel()
public void testConstructorMnemonicIndexGreaterThanLength()
public void testConstructorNegativeMnemonicIndex()
public static final void pass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |