Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jgoodies.forms.layout
Class ColumnSpecTest  view ColumnSpecTest download ColumnSpecTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.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 $

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ColumnSpecTest()
           
 
Method Summary
private  void assertEquals(ColumnSpec spec1, ColumnSpec spec2)
          Checks if the given ColumnSpec instances are equal and throws a failure if not.
private  void assertRejects(java.lang.String invalidEncoding)
          Asserts that the specified column spec encoding is rejected.
 void testRejectInvalidColumnSpecEncodings()
          Tests that the ColumnSpec parser rejects invalid encodings.
 void testRejectNegativeResizeWeight()
          Checks that the constructor rejects negative resize weights.
 void testRejectParsedNegativeResizeWeight()
          Checks that the constructor rejects negative resize weights.
 void testValidColumnSpecEncodings()
          Tests the ColumnSpec parser on valid encodings.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnSpecTest

public ColumnSpecTest()
Method Detail

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.