Examples of ImportDefImpl


Examples of org.auraframework.impl.root.library.ImportDefImpl

        StringSource<ImportDef> source = new StringSource<>(descriptor, String.format(
                "<%s library='%s' property='p'/>", ImportDefHandler.TAG, expectedLibrary), "myID", Format.XML);
        Mockito.doReturn(parentDescriptor).when(parentHandler).getDefDescriptor();
        ImportDefHandler handler = new ImportDefHandler(parentHandler, getReader(source), source);

        ImportDefImpl def = handler.getElement();

        DefDescriptor<LibraryDef> expectedDescriptor = DefDescriptorImpl.getInstance(expectedLibrary, LibraryDef.class);
        assertEquals(expectedDescriptor, def.getDescriptor());
        assertEquals(expectedDescriptor, def.getLibraryDescriptor());
    }
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.