Examples of ModuleDescriptor


Examples of com.atlassian.plugin.ModuleDescriptor

    }

    @Test
    public void testPureSpeakeasyInvalidDescriptor()
    {
        ModuleDescriptor descriptor = mock(ModuleDescriptor.class);
        when(descriptor.getKey()).thenReturn("bar");
        when(plugin.getModuleDescriptors()).thenReturn(Lists.<ModuleDescriptor<?>>newArrayList(descriptor));
        assertFalse(tryKey("foo"));
    }
View Full Code Here

Examples of com.intellij.ide.util.importProject.ModuleDescriptor

    super(progress, existingModuleNames, existingProjectLibraryNames);
  }

  @Override
  protected ModuleDescriptor createModuleDescriptor(File moduleContentRoot, Collection<DetectedSourceRoot> sourceRoots) {
    return new ModuleDescriptor(moduleContentRoot, HaxeModuleType.getInstance(), sourceRoots);
  }
View Full Code Here

Examples of com.sun.enterprise.deployment.util.ModuleDescriptor

                "getDescrForApplication",
                new Object[]{appName}, new String[]{"java.lang.String"});
        Iterator appModules = app.getModules();
        List result = new ArrayList();
        while (appModules.hasNext()) {
            ModuleDescriptor module = (ModuleDescriptor) appModules.next();
            if (SipUtil.SIP_MODULE_TYPE.equals(module.getModuleType().toString())) {
                SipBundleDescriptor desc = (SipBundleDescriptor) module.getDescriptor();
                HashMap oneRow = new HashMap();
                String componentName = module.getArchiveUri();
                if (componentName == null) {
                    componentName = "";
                }
                oneRow.put("componentName", componentName);
View Full Code Here

Examples of fr.jayasoft.ivy.ModuleDescriptor

   
    ModuleId moduleId =
      new ModuleId(org, module);   
    ModuleRevisionId revId =
      new ModuleRevisionId(moduleId, rev);
    ModuleDescriptor md =
      new DefaultModuleDescriptor(revId, "integration", new Date());   
    Artifact artifact =
      new MDArtifact(md, module, type, type);
   
    ArtifactDownloadReport report =
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor

                + e.getElementName() + ".");
    }

    public void testModuleAttributes() throws Exception
    {
        ModuleDescriptor md = parse("GenericModule.xml");

        assertEquals("hivemind.test.parse", md.getModuleId());
        assertEquals("1.0.0", md.getVersion());

        // package attribute was added in 1.1. Defaultis same as
        // module id.

        assertEquals("hivemind.test.parse", md.getPackageName());
    }
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor

        assertEquals("hivemind.test.parse", md.getPackageName());
    }

    public void testConfigurationPointAttributes() throws Exception
    {
        ModuleDescriptor md = parse("GenericModule.xml");

        List l = md.getConfigurationPoints();
        assertEquals(1, l.size());

        ConfigurationPointDescriptor cpd = (ConfigurationPointDescriptor) l.get(0);

        assertEquals("MyExtensionPoint", cpd.getId());
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor

        assertEquals(Occurances.ONE_PLUS, cpd.getCount());
    }

    public void testContributionAttributes() throws Exception
    {
        ModuleDescriptor md = parse("GenericModule.xml");

        List l = md.getContributions();
        assertEquals(1, l.size());

        ContributionDescriptor cd = (ContributionDescriptor) l.get(0);

        assertEquals("MyExtensionPoint", cd.getConfigurationId());
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor

        assertEquals("MyExtensionPoint", cd.getConfigurationId());
    }

    public void testContributionElements() throws Exception
    {
        ModuleDescriptor md = parse("GenericModule.xml");

        List l = md.getContributions();
        assertEquals(1, l.size());

        ContributionDescriptor cd = (ContributionDescriptor) l.get(0);

        l = cd.getElements();
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor

        { "gnip", "gnop" });
    }

    public void testServicePoint() throws Exception
    {
        ModuleDescriptor md = parse("GenericModule.xml");

        List l = md.getServicePoints();
        assertEquals(2, l.size());
        ServicePointDescriptor spd = (ServicePointDescriptor) l.get(0);

        assertEquals("MyService1", spd.getId());
        assertEquals("package.MyService", spd.getInterfaceClassName());
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor

        assertNull(id.getName());
    }

    public void testImplementation() throws Exception
    {
        ModuleDescriptor md = parse("GenericModule.xml");
        List l = md.getImplementations();
        assertEquals(1, l.size());

        ImplementationDescriptor id1 = (ImplementationDescriptor) l.get(0);

        assertEquals("othermodule.OtherService", id1.getServiceId());
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.