Package org.modeshape.sequencer.javafile.metadata

Examples of org.modeshape.sequencer.javafile.metadata.ImportMetadata


    @Test
    public void shouldCreateImportMetadata() throws Exception {
        List<ImportMetadata> data = javaMetadata.createImportMetadata((CompilationUnit)rootNode);
        assertEquals(2, data.size());
        ImportMetadata singleImport = data.get(0);
        assertEquals(ImportMetadata.Type.SINGLE, singleImport.getType());
        assertEquals("org.acme.annotation.MyClassAnnotation", singleImport.getName());

        ImportMetadata onDemandImport = data.get(1);
        assertEquals(ImportMetadata.Type.ON_DEMAND, onDemandImport.getType());
        assertEquals("java.util", onDemandImport.getName());
    }
View Full Code Here

TOP

Related Classes of org.modeshape.sequencer.javafile.metadata.ImportMetadata

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.