Package org.springframework.binding.value.support

Examples of org.springframework.binding.value.support.DefaultValueChangeDetector


*
*/
public class DefaultApplicationServicesTests extends SpringRichTestCase {

    public void testRegisteredServiceIsReturned() {
        ValueChangeDetector vcd = new DefaultValueChangeDetector();
        getApplicationServices().setValueChangeDetector(vcd);
        assertSame("Expected same object back", vcd, getApplicationServices().getService(ValueChangeDetector.class));

        MessageSource msrc = new StaticMessageSource();
        getApplicationServices().setMessageSource(msrc);
View Full Code Here


            ; // expected
        }
    }

    public void testSetRegistryEntries() {
        ValueChangeDetector vcd = new DefaultValueChangeDetector();
        MessageSource msrc = new StaticMessageSource();

        HashMap entries = new HashMap();
        entries.put("org.springframework.binding.value.ValueChangeDetector", vcd);
        entries.put("org.springframework.context.MessageSource", msrc);
View Full Code Here

    protected void setUp() throws Exception {
        ApplicationServices services = new ApplicationServices() {

            public Object getService(Class serviceType) {
                return new DefaultValueChangeDetector();
            }

            public boolean containsService(Class serviceType) {
                return ValueChangeDetector.class.equals(serviceType);
            }
View Full Code Here

TOP

Related Classes of org.springframework.binding.value.support.DefaultValueChangeDetector

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.