Examples of eventCount()


Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        assertEquals("After committing.", 2, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading unbuffered value.", 2, pcl.eventCount());

        buffer.setValue("buffering again");
        assertEquals("After second buffering switch.", 3, pcl.eventCount());
        revert();
        assertEquals("After flushing.", 4, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading unbuffered value.", 4, pcl.eventCount());
       
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        vm.clearDirty();
        assertEquals(4, pcl.eventCount());
        assertTrue(!m.isDirty());
       
        vm.setValue(null);
        assertEquals(4, pcl.eventCount());
        assertTrue(!m.isDirty());   
    }
   
    public void testEnabledChange() {
        FormModelMediatingValueModel vm = new FormModelMediatingValueModel(new ValueHolder("v1"));
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        assertEquals("Reading unbuffered value.", 2, pcl.eventCount());

        buffer.setValue("buffering again");
        assertEquals("After second buffering switch.", 3, pcl.eventCount());
        revert();
        assertEquals("After flushing.", 4, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading unbuffered value.", 4, pcl.eventCount());
       
        buffer.setValue("before real commit");
        assertEquals("With new change to be committed", 5, pcl.eventCount());
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        buffer.setValue("buffering again");
        assertEquals("After second buffering switch.", 3, pcl.eventCount());
        revert();
        assertEquals("After flushing.", 4, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading unbuffered value.", 4, pcl.eventCount());
       
        buffer.setValue("before real commit");
        assertEquals("With new change to be committed", 5, pcl.eventCount());
        commit();
        assertEquals("With new change committed", 6, pcl.eventCount());
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        FormModelMediatingValueModel vm = new FormModelMediatingValueModel(new ValueHolder("v1"));
        DefaultFormModel fm = new DefaultFormModel(new Object());
        DefaultFieldMetadata m = new DefaultFieldMetadata(fm, vm, Object.class, false, null);
        TestPropertyChangeListener pcl = new TestPropertyChangeListener(FieldMetadata.ENABLED_PROPERTY);
        m.addPropertyChangeListener(FieldMetadata.ENABLED_PROPERTY, pcl);
        assertEquals(0, pcl.eventCount());
        assertTrue(m.isEnabled());       
       
        m.setEnabled(true);
        assertEquals(0, pcl.eventCount());
        assertTrue(m.isEnabled());
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        assertEquals("After flushing.", 4, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading unbuffered value.", 4, pcl.eventCount());
       
        buffer.setValue("before real commit");
        assertEquals("With new change to be committed", 5, pcl.eventCount());
        commit();
        assertEquals("With new change committed", 6, pcl.eventCount());
    }
       
    public void testSetValueSendsProperValueChangeEvents() {
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        m.addPropertyChangeListener(FieldMetadata.ENABLED_PROPERTY, pcl);
        assertEquals(0, pcl.eventCount());
        assertTrue(m.isEnabled());       
       
        m.setEnabled(true);
        assertEquals(0, pcl.eventCount());
        assertTrue(m.isEnabled());
       
        m.setEnabled(false);
        assertEquals(1, pcl.eventCount());
        assertTrue(!m.isEnabled());
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        assertEquals("Reading unbuffered value.", 4, pcl.eventCount());
       
        buffer.setValue("before real commit");
        assertEquals("With new change to be committed", 5, pcl.eventCount());
        commit();
        assertEquals("With new change committed", 6, pcl.eventCount());
    }
       
    public void testSetValueSendsProperValueChangeEvents() {
        Object obj1  = new Integer(1);
        Object obj2a = new Integer(2);
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        m.setEnabled(true);
        assertEquals(0, pcl.eventCount());
        assertTrue(m.isEnabled());
       
        m.setEnabled(false);
        assertEquals(1, pcl.eventCount());
        assertTrue(!m.isEnabled());
       
        fm.setEnabled(false);
        assertEquals(1, pcl.eventCount());
        assertTrue(!m.isEnabled());
View Full Code Here

Examples of org.springframework.binding.support.TestPropertyChangeListener.eventCount()

        m.setEnabled(false);
        assertEquals(1, pcl.eventCount());
        assertTrue(!m.isEnabled());
       
        fm.setEnabled(false);
        assertEquals(1, pcl.eventCount());
        assertTrue(!m.isEnabled());
       
        m.setEnabled(true);
        assertEquals(1, pcl.eventCount());
        assertTrue(!m.isEnabled());
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.