Examples of TestIcon


Examples of org.springframework.richclient.test.TestIcon

    private static void pass() {
        // test passes
    }

    protected void setUp() throws Exception {
        icon = new TestIcon(Color.BLUE);
        selectedIcon = new TestIcon(Color.BLACK);
        rolloverIcon = new TestIcon(Color.GREEN);
        disabledIcon = new TestIcon(Color.GRAY);
        pressedIcon = new TestIcon(Color.WHITE);

        completeInfo = new CommandButtonIconInfo(icon, selectedIcon, rolloverIcon, disabledIcon, pressedIcon);
    }
View Full Code Here

Examples of org.springframework.richclient.test.TestIcon

* @author Peter De Bruycker
*/
public class MessageSourceFieldFaceSourceTests extends SpringRichTestCase {

  public void testLoadFieldFace() {
    Icon testIcon = new TestIcon(Color.RED);

    MessageSourceFieldFaceSource fieldFaceSource = new MessageSourceFieldFaceSource();

    StaticMessageSource messageSource = new StaticMessageSource();
    messageSource.addMessage("context.field.caption", Locale.getDefault(), "the caption");
View Full Code Here

Examples of org.springframework.richclient.test.TestIcon

   * 'objectName.icon'.
   */
  public void testConfigureIconConfigurable() {
    String objectName = "bogusIconConfigurable";
    String iconKey = objectName + ".icon";
    Icon expectedIcon = new TestIcon(Color.GREEN);

    // Create the required mock objects
    IconSource iconSource = (IconSource) EasyMock.createMock(IconSource.class);
    IconConfigurable configurable = (IconConfigurable) EasyMock.createMock(IconConfigurable.class);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.