Search in sources :

Example 6 with DomainEvent

use of org.apache.cayenne.configuration.event.DomainEvent in project cayenne by apache.

the class DomainEventTest method testConstructor1.

@Test
public void testConstructor1() throws Exception {
    Object src = new Object();
    DataChannelDescriptor d = new DataChannelDescriptor();
    DomainEvent e = new DomainEvent(src, d);
    assertSame(src, e.getSource());
    assertSame(d, e.getDomain());
}
Also used : DataChannelDescriptor(org.apache.cayenne.configuration.DataChannelDescriptor) DomainEvent(org.apache.cayenne.configuration.event.DomainEvent) Test(org.junit.Test)

Aggregations

DomainEvent (org.apache.cayenne.configuration.event.DomainEvent)6 DataChannelDescriptor (org.apache.cayenne.configuration.DataChannelDescriptor)5 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)1 EventObject (java.util.EventObject)1 Map (java.util.Map)1 Preferences (java.util.prefs.Preferences)1 DataMapEvent (org.apache.cayenne.configuration.event.DataMapEvent)1 DataNodeEvent (org.apache.cayenne.configuration.event.DataNodeEvent)1 ProcedureEvent (org.apache.cayenne.configuration.event.ProcedureEvent)1 QueryEvent (org.apache.cayenne.configuration.event.QueryEvent)1 EmbeddableEvent (org.apache.cayenne.map.event.EmbeddableEvent)1 EntityEvent (org.apache.cayenne.map.event.EntityEvent)1 RenamedPreferences (org.apache.cayenne.pref.RenamedPreferences)1 ValidationException (org.apache.cayenne.validation.ValidationException)1