Examples of eventCount()


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

        fm.addPropertyChangeListener(ValidatingFormModel.VALIDATING_PROPERTY, pcl);
        assertTrue(fm.isEnabled());

        fm.setValidating(false);
        assertTrue(!fm.isValidating());
        assertEquals(1, pcl.eventCount());

        fm.setValidating(false);
        assertTrue(!fm.isValidating());
        assertEquals(1, pcl.eventCount());
View Full Code Here

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

        assertTrue(!fm.isValidating());
        assertEquals(1, pcl.eventCount());

        fm.setValidating(false);
        assertTrue(!fm.isValidating());
        assertEquals(1, pcl.eventCount());

        fm.setValidating(true);
        assertTrue(fm.isValidating());
        assertEquals(2, pcl.eventCount());
View Full Code Here

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

        assertTrue(!fm.isValidating());
        assertEquals(1, pcl.eventCount());

        fm.setValidating(true);
        assertTrue(fm.isValidating());
        assertEquals(2, pcl.eventCount());

        fm.setEnabled(true);
        assertTrue(fm.isValidating());
        assertEquals(2, pcl.eventCount());
    }
View Full Code Here

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

        assertTrue(fm.isValidating());
        assertEquals(2, pcl.eventCount());

        fm.setEnabled(true);
        assertTrue(fm.isValidating());
        assertEquals(2, pcl.eventCount());
    }

    public void testReadOnlyRevert() {
        FormModel fm = getFormModel(new TestBean());
        fm.getValueModel("readOnly");
View Full Code Here

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

        BufferedValueModel buffer = createDefaultBufferedValueModel();
       
        TestPropertyChangeListener pcl = new TestPropertyChangeListener(BufferedValueModel.BUFFERING_PROPERTY);
        buffer.addPropertyChangeListener(BufferedValueModel.BUFFERING_PROPERTY, pcl);
       
        assertEquals("Initial state.", 0, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading initial value.", 0, pcl.eventCount());
        buffer.setCommitTrigger(null);
        buffer.setCommitTrigger(commitTrigger);
        assertEquals("After commit trigger change.", 0, pcl.eventCount());
View Full Code Here

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

        DefaultFormModel fm = new DefaultFormModel(new Object());
        DefaultFieldMetadata m = new DefaultFieldMetadata(fm, vm, Object.class, false, null);
        TestPropertyChangeListener pcl = new TestPropertyChangeListener(FieldMetadata.DIRTY_PROPERTY);
        m.addPropertyChangeListener(FieldMetadata.DIRTY_PROPERTY, pcl);       
        assertTrue(!m.isDirty());
        assertEquals(0, pcl.eventCount());
       
        vm.setValue("v1");
        assertEquals(0, pcl.eventCount());
        assertTrue(!m.isDirty());
       
View Full Code Here

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

        TestPropertyChangeListener pcl = new TestPropertyChangeListener(BufferedValueModel.BUFFERING_PROPERTY);
        buffer.addPropertyChangeListener(BufferedValueModel.BUFFERING_PROPERTY, pcl);
       
        assertEquals("Initial state.", 0, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading initial value.", 0, pcl.eventCount());
        buffer.setCommitTrigger(null);
        buffer.setCommitTrigger(commitTrigger);
        assertEquals("After commit trigger change.", 0, pcl.eventCount());

        buffer.setValue("now buffering");
View Full Code Here

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

        assertEquals("Initial state.", 0, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading initial value.", 0, pcl.eventCount());
        buffer.setCommitTrigger(null);
        buffer.setCommitTrigger(commitTrigger);
        assertEquals("After commit trigger change.", 0, pcl.eventCount());

        buffer.setValue("now buffering");
        assertEquals("After setting the first value.", 1, pcl.eventCount());
        buffer.setValue("still buffering");
        assertEquals("After setting the second value.", 1, pcl.eventCount());
View Full Code Here

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

        m.addPropertyChangeListener(FieldMetadata.DIRTY_PROPERTY, pcl);       
        assertTrue(!m.isDirty());
        assertEquals(0, pcl.eventCount());
       
        vm.setValue("v1");
        assertEquals(0, pcl.eventCount());
        assertTrue(!m.isDirty());
       
        vm.setValue("v2");
        assertEquals(1, pcl.eventCount());
        assertTrue(m.isDirty());
View Full Code Here

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

        buffer.setCommitTrigger(null);
        buffer.setCommitTrigger(commitTrigger);
        assertEquals("After commit trigger change.", 0, pcl.eventCount());

        buffer.setValue("now buffering");
        assertEquals("After setting the first value.", 1, pcl.eventCount());
        buffer.setValue("still buffering");
        assertEquals("After setting the second value.", 1, pcl.eventCount());
        buffer.getValue();
        assertEquals("Reading buffered value.", 1, pcl.eventCount());
               
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.