Examples of clearLastEvent()


Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        assertSame(oldValue, l2.lastEvent.getOldValue());
        assertSame(newValue, l2.lastEvent.getNewValue());
        assertSame(support, l2.lastEvent.getSource());

        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange("xxx", oldValue, newValue);
        assertNull(l1.lastEvent);
        assertNull(l2.lastEvent);
    }
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        Object newValue = new Integer(5);

        support.addPropertyChangeListener(propName, l1);
        support.addPropertyChangeListener("xxx", l2);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertEquals(propName, l1.lastEvent.getPropertyName());
        assertSame(oldValue, l1.lastEvent.getOldValue());
        assertSame(newValue, l1.lastEvent.getNewValue());
        assertSame(support, l1.lastEvent.getSource());
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        Object newValue = new Integer(1);

        support.addPropertyChangeListener(propName, l1);
        support.addPropertyChangeListener("xxx", l2);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertNull(l1.lastEvent);
        assertNull(l2.lastEvent);
    }
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        Object newValue = null;

        support.addPropertyChangeListener(propName, l1);
        support.addPropertyChangeListener("xxx", l2);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertEquals(propName, l1.lastEvent.getPropertyName());
        assertNull(l1.lastEvent.getOldValue());
        assertNull(l1.lastEvent.getNewValue());
        assertSame(support, l1.lastEvent.getSource());
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        Object newValue = new Integer(5);

        support.addPropertyChangeListener(propName, l1);
        support.addPropertyChangeListener(propName, l2);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertEquals(propName, l1.lastEvent.getPropertyName());
        assertSame(oldValue, l1.lastEvent.getOldValue());
        assertSame(newValue, l1.lastEvent.getNewValue());
        assertSame(support, l1.lastEvent.getSource());
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        assertSame(newValue, l2.lastEvent.getNewValue());
        assertSame(support, l2.lastEvent.getSource());

        support.removePropertyChangeListener(propName, l1);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertNull(l1.lastEvent);
        assertEquals(propName, l2.lastEvent.getPropertyName());
        assertSame(oldValue, l2.lastEvent.getOldValue());
        assertSame(newValue, l2.lastEvent.getNewValue());
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        assertSame(newValue, l2.lastEvent.getNewValue());
        assertSame(support, l2.lastEvent.getSource());

        support.removePropertyChangeListener(propName, l2);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertNull(l1.lastEvent);
        assertNull(l2.lastEvent);

        // remove not-registered listener
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        MockBeanContext ctx = new MockBeanContext();
        assertNull(support.getBeanContext());

        support.clearLastRecords();
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.setBeanContext(null);
        assertNull(support.getBeanContext());
        assertNull(support.lastInitBeanContext);
        assertNull(l1.lastEvent);
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        assertNull(support.lastInitBeanContext);
        assertNull(l1.lastEvent);
        assertNull(l2.lastEvent);

        support.clearLastRecords();
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.setBeanContext(ctx);
        assertSame(ctx, support.getBeanContext());
        assertSame(ctx, support.lastInitBeanContext);
        assertEquals("beanContext", l1.lastEvent.getPropertyName());
View Full Code Here

Examples of org.apache.harmony.beans.tests.support.beancontext.mock.MockPropertyChangeListener.clearLastEvent()

        assertNull(l2.lastEvent.getOldValue());
        assertSame(ctx, l2.lastEvent.getNewValue());
        assertSame(peer, l2.lastEvent.getSource());

        support.clearLastRecords();
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.setBeanContext(ctx);
        assertSame(ctx, support.getBeanContext());
        assertNull(support.lastInitBeanContext);
        assertNull(l1.lastEvent);
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.