Package org.auraframework.def

Examples of org.auraframework.def.EventDef


    }

    public void testGetSuperDefs() throws Exception {
        DefDescriptor<EventDef> eventDefDescriptor = vendor.makeEventDefDescriptor("test:fakeEvent");
        DefDescriptor<EventDef> eventDefDescriptorParent = vendor.makeEventDefDescriptor("test:parentEvent");
        EventDef ed = vendor.makeEventDef(eventDefDescriptor, eventDefDescriptorParent).getSuperDef();
        assertEquals("parentEvent", ed.getDescriptor().getName());
    }
View Full Code Here


    @Override
    protected void setupValidateReferences() throws Exception {
        super.setupValidateReferences();
        DefDescriptor<EventDef> superDesc = Aura.getDefinitionService().getDefDescriptor("aura:locationChange",
                EventDef.class);
        EventDef locationChangeEventDef = Mockito.mock(EventDef.class);
        Mockito.doReturn(true).when(locationChangeEventDef).isInstanceOf(superDesc);
        Mockito.doReturn(locationChangeEventDef).when(this.locationChangeEventDescriptor).getDef();
    }
View Full Code Here

TOP

Related Classes of org.auraframework.def.EventDef

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.