Examples of Feature


Examples of org.netmelody.cieye.core.domain.Feature

                will(returnValue(viewWithJobsNamed("myJob")));
           
            never(contact).makeJsonRestCall(with(any(String.class)), with(JobDetail.class));
        }});
       
        final Feature feature = new Feature("myFeatureName", "myEndpoint", new CiServerType("JENKINS"));
        final TargetDigestGroup targets = spy.targetsConstituting(feature);
        context.assertIsSatisfied();
       
        context.checking(new Expectations() {{
            oneOf(contact).makeJsonRestCall(with(any(String.class)), with(JobDetail.class));
View Full Code Here

Examples of org.opengis.feature.Feature

        assertEquals(1, listener.events.size());
        TransactionEvent event = (TransactionEvent) listener.events.get(0);
        assertEquals(TransactionEventType.PRE_DELETE, event.getType());
        assertEquals(MockData.POINTS, event.getLayerName());
        assertEquals(1, listener.features.size());
        Feature deleted = (Feature) listener.features.get(0);
        assertEquals("t0000", deleted.getProperty("id").getValue());
    }
View Full Code Here

Examples of org.sumus.dwh.feature.Feature

      createFeature(dimension, definition);
  }

  private void createFeature(Dimension dimension, FeatureDefinition definition){
    try {
      dimension.add(new Feature(definition.getName(), definition.getType()));
    }
    catch (Exception e) {
    }
  }
View Full Code Here

Examples of org.switchyard.component.soap.Feature

     * @param port The WSDL service port.
     * @param documentStyle true if it is 'document', false if 'rpc'.
     * @return the feature booleans.
     */
    public static Feature getFeature(final Definition definition, final Port port, Boolean documentStyle) {
        Feature feature = new Feature();
        Boolean addressing = false;
        Boolean mtom = false;
        List<ExtensibilityElement> extensibilityElements = getExtensibilityElements(definition);
        if (documentStyle) {
            // Check if any element uses xmime:expectedContentTypes
            for (ExtensibilityElement element : extensibilityElements) {
                if (element instanceof Schema) {
                    mtom = setMtomEnabled((Schema)element);
                    if (mtom) {
                        feature.setMtomEnabled(true);
                        break;
                    }
                }
            }
        } else {
            // Check if any part uses xmime:expectedContentTypes
            for (Message message : ((Map<String, Message>)definition.getMessages()).values()) {
                for (Part part : (List<Part>)message.getOrderedParts(null)) {
                    if (part.getExtensionAttribute(MTOM_EXPT_QNAME) != null) {
                        feature.setMtomEnabled(true);
                    }
                }
            }
        }

outer:  for (ExtensibilityElement element : (List<ExtensibilityElement>)port.getBinding().getExtensibilityElements()) {
            if (element instanceof UnknownExtensibilityElement) {
                String attrValue = null;
                Element domElement = ((UnknownExtensibilityElement)element).getElement();
                if (element.getElementType().equals(USING_WSA_QNAME)) {
                    feature.setAddressingEnabled(true);
                    setAddressingRequired(feature, domElement);
                    break;
                } else if (element.getElementType().equals(POLICY_REFERENCE_QNAME)) {
                    String uri = XMLHelper.getAttribute(domElement, WSDL11_URI, ATTR_URI);
                    /*if (uri == null) {
View Full Code Here

Examples of org.togglz.core.Feature

    @Override
    public Boolean get(Object key) {

        Validate.notNull(key, "The feature must not be null");

        Feature feature = null;
        if (key instanceof Feature) {
            feature = (Feature) key;
        } else {
            feature = new NamedFeature(key.toString());
        }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.stub.prov.data.Feature

    public static FeatureWrapper[] filterFeatures(FeatureWrapper[] originalFeatures, String filterStr) {
        try {
            List<FeatureWrapper> originalFeatureList = Arrays.asList(originalFeatures);
            ArrayList<FeatureWrapper> matchedFeatureList = new ArrayList<FeatureWrapper>();
            for (FeatureWrapper featureWrapper : originalFeatureList) {
                Feature feature = featureWrapper.getWrappedFeature();
                String featureName = feature.getFeatureName();
                if (featureName != null && featureName.toLowerCase().contains(filterStr.toLowerCase())) {
                    matchedFeatureList.add(featureWrapper);
                }
            }
            FeatureWrapper[] matchedFeatures = new FeatureWrapper[matchedFeatureList.size()];
View Full Code Here

Examples of org.zanata.feature.Feature

     * annotation on method takes precedence over annotation on class. At the
     * moment class level annotation will cause multiple entries in the result
     * if there are more than one test methods.
     */
    private static Optional<Feature> getFeature(Description description) {
        Feature testClassFeature =
                description.getTestClass().getAnnotation(Feature.class);
        Feature testMethodFeature = description.getAnnotation(Feature.class);
        return Optional.fromNullable(testMethodFeature).or(
                Optional.fromNullable(testClassFeature));
    }
View Full Code Here

Examples of org.zkoss.openlayers.feature.Feature

                            "${yOffset}")))))),
            pair("renderers",
                new Object[] { "SVG", "VML", "Canvas" })));

    Point point = new Point(-111.04, 45.68);
    Feature pointFeature = new Vector(point, toMap(pair("name", "toto"),
        pair("age", 20), pair("favColor", "red"), pair("align", "cm")));

    // create a polygon feature from a linear ring of points
    List<Point> pointList = new ArrayList<Point>();
    for (int p = 0; p < 6; ++p) {
View Full Code Here

Examples of rocks.xmpp.extensions.disco.model.info.Feature

        TestXmppSession connection1 = new TestXmppSession();
        StanzaForwardingManager stanzaForwardingManager = connection1.getExtensionManager(StanzaForwardingManager.class);
        // By default, the manager should be NOT enabled.
        Assert.assertFalse(stanzaForwardingManager.isEnabled());
        ServiceDiscoveryManager serviceDiscoveryManager = connection1.getExtensionManager(ServiceDiscoveryManager.class);
        Feature feature = new Feature("urn:xmpp:forward:0");
        Assert.assertFalse(serviceDiscoveryManager.getFeatures().contains(feature));
        stanzaForwardingManager.setEnabled(true);
        Assert.assertTrue(stanzaForwardingManager.isEnabled());
        Assert.assertTrue(serviceDiscoveryManager.getFeatures().contains(feature));
    }
View Full Code Here

Examples of synalp.commons.unification.Feature

  {
    if (eq!=null)
      if (eq.getFeatureStructure()!=null)
        if (!eq.getFeatureStructure().getFeatures().isEmpty())
          {
            Feature lem = eq.getFeatureStructure().getFeature(LexFormatEntry.COANCHOR_LEMMA_FEAT);
            Feature cat = eq.getFeatureStructure().getFeature(LexFormatEntry.COANCHOR_CAT_FEAT);
            if (lem!=null && cat !=null)
              out.write(eq.getNodeId() + " -> " + lem.getValue() + "/" + cat.getValue() + "\n");
            else
              logger.warn("In a COANCHORS equation we do not find expected lemma and cat elements of nodeId -> lemma/cat");
          }

   
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.