public class MaxHeightJScrollPaneTest
extends junit.framework.TestCase
Title: Test the max height scroll pane class
Description:
Copyright: Copyright (c) 2006-2014
Company:
Modifier and Type | Field and Description |
---|---|
private javax.swing.JPanel |
jp1
Panel 1 for testing
|
private static java.awt.Dimension |
JP1_DIM
Dimensions for component 1
|
private javax.swing.JPanel |
jp2
Panel 2 for testing
|
private static java.awt.Dimension |
JP2_DIM
Dimensions for component 2
|
private static int |
MAX_HEIGHT
Maximum height for the scroll pane
|
private MaxHeightJScrollPane |
scrollPaneCompAndPolicy
A scroll pane with a policy and component
|
private MaxHeightJScrollPane |
scrollPaneCompOnly
A scroll pane with a policy but no component
|
Constructor and Description |
---|
MaxHeightJScrollPaneTest()
Setup to test case instance
|
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Setup the test
|
void |
testGetMaximumSize()
Test getting the maximum size
|
void |
testGetMinimumSize()
Test getting the minimum size
|
void |
testGetPreferredSize()
Test getting the preferred size
|
void |
testLockHeight()
Test getting the height
|
void |
testOtherConstructors()
Create a scroll pane with no
|
void |
testSetHeight()
Test setting the height
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
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
private static final int MAX_HEIGHT
private static final java.awt.Dimension JP1_DIM
private static final java.awt.Dimension JP2_DIM
private MaxHeightJScrollPane scrollPaneCompOnly
private MaxHeightJScrollPane scrollPaneCompAndPolicy
private javax.swing.JPanel jp1
private javax.swing.JPanel jp2
public MaxHeightJScrollPaneTest()
public void setUp()
setUp
in class junit.framework.TestCase
public void testLockHeight()
public void testGetPreferredSize()
public void testGetMaximumSize()
public void testGetMinimumSize()
public void testSetHeight()
public void testOtherConstructors()