java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.jgoodies.forms.layout.ColumnSpecTest
- All Implemented Interfaces:
- junit.framework.Test
- public final class ColumnSpecTest
- extends junit.framework.TestCase
A test case for class ColumnSpec.
- Version:
- $Revision: 1.8 $
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
ColumnSpecTest
public ColumnSpecTest()
testRejectNegativeResizeWeight
public void testRejectNegativeResizeWeight()
- Checks that the constructor rejects negative resize weights.
testRejectParsedNegativeResizeWeight
public void testRejectParsedNegativeResizeWeight()
- Checks that the constructor rejects negative resize weights.
testValidColumnSpecEncodings
public void testValidColumnSpecEncodings()
- Tests the ColumnSpec parser on valid encodings.
testRejectInvalidColumnSpecEncodings
public void testRejectInvalidColumnSpecEncodings()
- Tests that the ColumnSpec parser rejects invalid encodings.
assertEquals
private void assertEquals(ColumnSpec spec1,
ColumnSpec spec2)
- Checks if the given ColumnSpec instances are equal and throws a failure
if not.
assertRejects
private void assertRejects(java.lang.String invalidEncoding)
- Asserts that the specified column spec encoding is rejected.