Examples of Capability


Examples of com.cloud.network.Network.Capability

            capabilityMap = new HashMap <Capability, String>();
            Collection serviceCapabilityCollection = serviceCapabilitystList.values();
            Iterator iter = serviceCapabilityCollection.iterator();
            while (iter.hasNext()) {
                HashMap<String, String> svcCapabilityMap = (HashMap<String, String>) iter.next();
                Capability capability = null;
                String svc = (String) svcCapabilityMap.get("service");
                String capabilityName = (String) svcCapabilityMap.get("capabilitytype");
                String capabilityValue = (String) svcCapabilityMap.get("capabilityvalue");

                if (capabilityName != null) {
View Full Code Here

Examples of com.cloudbees.api.cr.Capability

        List<String> scopes = new ArrayList<String>(Arrays.asList(secureAnnotation.scopes()));
        String[] capabilities = secureAnnotation.capabilities();

        for(String cap:capabilities){
            try {
                scopes.add(new Capability(cap).to(request.getRequestUri().toURL()));
            } catch (MalformedURLException e) {
                throw new AuthException(500, "Invalid host name: "+ request.getRequestUri().toString());
            }
        }
        logger.debug("Expecting scopes: "+Arrays.toString(scopes.toArray()));
View Full Code Here

Examples of com.github.searls.jasmine.mojo.Capability

    assertTrue(createWebDriverAndReturnCapabilities().isJavascriptEnabled());
  }

  @Test
  public void setsCapabilityFromMap() throws Exception {
    Capability capability = new Capability();
    capability.setName("foo");
    capability.setValue("bar");
    factory.setWebDriverCapabilities(ImmutableList.of(capability));

    assertEquals("bar", createWebDriverAndReturnCapabilities().getCapability("foo"));
  }
View Full Code Here

Examples of com.google.appengine.api.capabilities.Capability

        return war;
    }

    @Test
    public void testGetStatus() {
        Capability capability;
        for (String p : TEST_DATA) {
            if (p.indexOf(',') > 0) {
                String in[] = p.split(",");
                capability = new Capability(in[0], in[1]);
                p = in[0];
            } else {
                capability = new Capability(p);
            }
            CapabilityState cState = capabilitiesService.getStatus(capability);
            assertEquals(p, cState.getCapability().getPackageName());
            assertEquals(CapabilityStatus.ENABLED, cState.getStatus());
        }
View Full Code Here

Examples of com.google.testing.testify.risk.frontend.model.Capability

    components.add(comp4);

    // Capabilities.
    LOG.info("Creating capabilities.");
    ArrayList<Capability> capabilities = Lists.newArrayList();
    Capability capa1 = new Capability(
        projectId, attributes.get(0).getAttributeId(), components.get(1).getComponentId());
    capa1.setName("Credit card processing takes less than 5 seconds");
    capa1.setFailureRate(FailureRate.OFTEN);
    capa1.addLabel("external");
    capa1.addLabel("load test");
    capa1.setDescription("Order is completed from clicking 'ORDER NOW' to success page.");
    capa1.setUserImpact(UserImpact.MINIMAL);
    capa1.setCapabilityId(projectService.createCapability(capa1).getCapabilityId());
    capabilities.add(capa1);

    Capability capa2 = new Capability(
        projectId, attributes.get(0).getAttributeId(), components.get(1).getComponentId());
    capa2.setName("Saved addresses and credit cards appear quickly");
    capa2.setFailureRate(FailureRate.OCCASIONALLY);
    capa2.setUserImpact(UserImpact.MAXIMAL);
    capa2.setCapabilityId(projectService.createCapability(capa2).getCapabilityId());
    capabilities.add(capa2);

    Capability capa3 = new Capability(
        projectId, attributes.get(2).getAttributeId(), components.get(1).getComponentId());
    capa3.setName("All traffic is sent over https");
    capa3.addLabel("ssl");
    capa3.setFailureRate(FailureRate.NA);
    capa3.setUserImpact(UserImpact.MAXIMAL);
    capa3.setCapabilityId(projectService.createCapability(capa3).getCapabilityId());
    capabilities.add(capa3);

    Capability capa4 = new Capability(
        projectId, attributes.get(2).getAttributeId(), components.get(3).getComponentId());
    capa4.setName("Items removed from inventory do not appear in search");
    capa4.setFailureRate(FailureRate.VERY_RARELY);
    capa4.setUserImpact(UserImpact.NA);
    capa4.setCapabilityId(projectService.createCapability(capa4).getCapabilityId());
    capabilities.add(capa4);

    // Bugs.
    LOG.info("Creating bugs.");
    List<Bug> bugs = Lists.newArrayList();
View Full Code Here

Examples of com.google.wave.api.robot.Capability

    WaveletAndDeltas waveletAndDeltas =
        WaveletAndDeltas.create(waveletData, DeltaSequence.of(delta));

    // Put the wanted event in the capabilities map
    Map<EventType, Capability> capabilities = Maps.newHashMap();
    capabilities.put(eventType, new Capability(eventType));

    // Generate the events
    EventMessageBundle messages =
        eventGenerator.generateEvents(waveletAndDeltas, capabilities, CONVERTER);
View Full Code Here

Examples of org.apache.commons.vfs.Capability

        final Capability[] caps = getRequiredCaps();
        if (caps != null)
        {
            for (int i = 0; i < caps.length; i++)
            {
                final Capability cap = caps[i];
                if (!readFolder.getFileSystem().hasCapability(cap))
                {
                    System.out.println("skipping " + getName() + " because fs does not have cap " + cap);
                    return;
                }
View Full Code Here

Examples of org.apache.commons.vfs2.Capability

        final Capability[] caps = getRequiredCaps();
        if (caps != null)
        {
            for (int i = 0; i < caps.length; i++)
            {
                final Capability cap = caps[i];
                FileSystem fs = readFolder.getFileSystem();
                if (!fs.hasCapability(cap))
                {
//                    String name = fs.getClass().getName();
//                    int index = name.lastIndexOf('.');
View Full Code Here

Examples of org.apache.felix.bundlerepository.Capability

            while ((event = reader.nextTag()) == XmlPullParser.START_TAG)
            {
                String element = reader.getName();
                if (CAPABILITY.equals(element))
                {
                    Capability capability = parseCapability(reader, resource);
                    if (capability != null)
                        resource.addCapability(capability);
                }
                else if (REQUIREMENT.equals(element))
                {
View Full Code Here

Examples of org.apache.geronimo.obr.model.Capability

    }
   
    private void convertExportPackageToCapability(Resource resource) {
        List<BundleDescription.ExportPackage> exports = bundleDescription.getExportPackage();
        for (BundleDescription.ExportPackage exportPackage : exports) {
            Capability cap = new Capability();
            cap.setName("package");
            cap.getP().add(createP("package", null, exportPackage.getName()));
            cap.getP().add(createP("version", "version", exportPackage.getVersion().toString()));
            resource.getCapability().add(cap);
        }
    }
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.