org.springframework.richclient.util
Class OverlayHelperTests

Show UML class diagram
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.richclient.test.SpringRichTestCase
              extended by org.springframework.richclient.util.OverlayHelperTests
All Implemented Interfaces:
junit.framework.Test

public class OverlayHelperTests
extends SpringRichTestCase

Since:
May 12, 2006 8:32:27 AM
Author:
andy

Nested Class Summary
static class OverlayHelperTests.ScrollablePanel
           
 
Field Summary
 
Fields inherited from class org.springframework.richclient.test.SpringRichTestCase
applicationServices, logger
 
Constructor Summary
OverlayHelperTests()
           
 
Method Summary
 void testRegressionOverlayHelperLeak()
          See RCP-492 for details on this test and related bug.
 void testRegressionScrollableProxy()
          OverlayHelper installs the overlay as the View of a JScrollPane viewport, if the component is in a JScrollPane, so that the overlay is shown in the proper location when scrolled.
 void testSwapScrollableForNonScrollable()
           
 
Methods inherited from class org.springframework.richclient.test.SpringRichTestCase
createApplicationContext, createApplicationLifecycleAdvisor, doSetUp, doTearDown, getApplicationServices, registerAdditionalServices, registerBasicServices, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

OverlayHelperTests

public OverlayHelperTests()
Method Detail

testRegressionScrollableProxy

public void testRegressionScrollableProxy()
                                   throws Exception
OverlayHelper installs the overlay as the View of a JScrollPane viewport, if the component is in a JScrollPane, so that the overlay is shown in the proper location when scrolled. However, to accomplish this, it will remove the component that was in the viewport, add it to a JLayeredPane, and then add that JLayeredPane to the viewport instead. This introduced a bug if the viewport's view happened to implement the Scrollable interface, since JScrollPane does not implement the Scrollable interface. See issue RCP-344.

Throws:
Exception

testRegressionOverlayHelperLeak

public void testRegressionOverlayHelperLeak()
                                     throws Exception
See RCP-492 for details on this test and related bug.

Throws:
Exception

testSwapScrollableForNonScrollable

public void testSwapScrollableForNonScrollable()
                                        throws Exception
Throws:
Exception


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.