org.springframework.richclient.command.support
Class ButtonTests

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.command.support.ButtonTests
All Implemented Interfaces:
junit.framework.Test

public class ButtonTests
extends SpringRichTestCase


Field Summary
 
Fields inherited from class org.springframework.richclient.test.SpringRichTestCase
applicationServices, logger
 
Constructor Summary
ButtonTests()
           
 
Method Summary
 void enableTest(org.springframework.richclient.command.AbstractCommand command, Object[] buttons, boolean enable)
           
 void enableTests(org.springframework.richclient.command.AbstractCommand command, Object[] buttons)
           
protected  void registerAdditionalServices(org.springframework.richclient.application.support.DefaultApplicationServices applicationServices)
          May be implemented in subclasses that need to register services with the global application services instance.
 void testAdditionalConditionToEnable()
          Tests if a command subclass can use an additional condition when enable is enabled or not
 void testAdditionalConditionToVisible()
          Tests if a command subclass can use an additional condition when visible is enabled or not
 void testButtonEnabling()
           
 void testButtonVisible()
           
 void testMultipleFaceDescriptorsEnabling()
           
 void visibleTest(org.springframework.richclient.command.AbstractCommand command, Object[] buttons, boolean visible)
           
 void visibleTests(org.springframework.richclient.command.AbstractCommand command, Object[] buttons)
           
 
Methods inherited from class org.springframework.richclient.test.SpringRichTestCase
createApplicationContext, createApplicationLifecycleAdvisor, doSetUp, doTearDown, getApplicationServices, 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

ButtonTests

public ButtonTests()
Method Detail

registerAdditionalServices

protected void registerAdditionalServices(org.springframework.richclient.application.support.DefaultApplicationServices applicationServices)
May be implemented in subclasses that need to register services with the global application services instance.

Overrides:
registerAdditionalServices in class SpringRichTestCase

testButtonEnabling

public void testButtonEnabling()

enableTests

public void enableTests(org.springframework.richclient.command.AbstractCommand command,
                        Object[] buttons)

enableTest

public void enableTest(org.springframework.richclient.command.AbstractCommand command,
                       Object[] buttons,
                       boolean enable)

testButtonVisible

public void testButtonVisible()

visibleTests

public void visibleTests(org.springframework.richclient.command.AbstractCommand command,
                         Object[] buttons)

visibleTest

public void visibleTest(org.springframework.richclient.command.AbstractCommand command,
                        Object[] buttons,
                        boolean visible)

testMultipleFaceDescriptorsEnabling

public void testMultipleFaceDescriptorsEnabling()

testAdditionalConditionToEnable

public void testAdditionalConditionToEnable()
                                     throws Exception
Tests if a command subclass can use an additional condition when enable is enabled or not

Throws:
Exception

testAdditionalConditionToVisible

public void testAdditionalConditionToVisible()
                                      throws Exception
Tests if a command subclass can use an additional condition when visible is enabled or not

Throws:
Exception


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