Package org.springframework.richclient.dialog

Examples of org.springframework.richclient.dialog.DialogPage


        Application app = new Application(new DefaultApplicationLifecycleAdvisor());
        app.setApplicationContext(applicationContext);
    }

    public void testMessageMonitor() {
        DialogPage page = new TestDialogPage();
        TestMessagable monitor = new TestMessagable();
        DialogPageUtils.addMessageMonitor(page, monitor);

        monitor.resetMessageCount();
        page.setMessage(new DefaultMessage("a message"));
        assertEquals("Message text not equal", monitor.getMessage().getMessage(), "a message");

        page.setMessage(new DefaultMessage("another message"));
        assertEquals("Message text not equal", monitor.getMessage().getMessage(), "another message");

        assertEquals("Message count incorrect", 2, monitor.getMessageCount());
    }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.dialog.DialogPage

Copyright © 2018 www.massapicom. 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.