Examples of Property


Examples of com.puppetlabs.geppetto.junitresult.Property

    assertEquals("java.lang.RuntimeException: humidity level too high\n" + //
        "\tat net.cars.engine.Bougie.spark(Unknown Source)\n" + //
        "\tat net.cars.engine.BougieTest.sparkHumid(BougieTest.java:36)\n", error.getValue());

    assertEquals(74, rootsuite.getProperties().size());
    Property p = rootsuite.getProperties().get(0);
    assertEquals("java.vendor", p.getName());
    assertEquals("IBM Corporation", p.getValue());
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.pptp.Property

      assertEquals("Should have found 'mocktype'", "mocktype", type.getName());
      assertEquals("Should have found documentation", "<p>This is a mock type</p>", type.getDocumentation());

      assertEquals("Should have one property", 1, type.getProperties().size());
      {
        Property prop = getProperty("prop1", type);
        assertNotNull("Should have a property 'prop1", prop);
        assertEquals("Should have defined documentation", "<p>This is property1</p>", prop.getDocumentation());
      }
      {
        assertEquals("Should have one parameter", 1, type.getParameters().size());
        Parameter param = getParameter("param1", type);
        assertNotNull("Should have a parameter 'param1", param);
        assertEquals("Should have defined documentation", "<p>This is parameter1</p>", param.getDocumentation());
      }

      // There should be two type fragments, with a contribution each
      List<TypeFragment> typeFragments = target.getTypeFragments();
      assertEquals("Should have found two fragments", 2, typeFragments.size());

      TypeFragment fragment1 = typeFragments.get(0);
      TypeFragment fragment2 = typeFragments.get(1);
      boolean fragment1HasExtra1 = getProperty("extra1", fragment1) != null;
      {
        Property prop = getProperty("extra1", fragment1HasExtra1
            ? fragment1
            : fragment2);
        assertNotNull("Should have a property 'extra1", prop);
        assertEquals(
          "Should have defined documentation", "<p>An extra property called extra1</p>",
          prop.getDocumentation());
      }
      {
        Property prop = getProperty("extra2", fragment1HasExtra1
            ? fragment2
            : fragment1);
        assertNotNull("Should have a property 'extra2", prop);
        assertEquals(
          "Should have defined documentation", "<p>An extra property called extra2</p>",
          prop.getDocumentation());
      }

      // should have found two functions "echotest" and "echotest2"
      // and the log functions (8)
      assertEquals("Should have found two functions", 10, target.getFunctions().size());
View Full Code Here

Examples of com.sparc.knappsack.models.api.v1.Property

        StringBuffer url = request.getRequestURL().replace(index, request.getRequestURL().length(), newContext);
        applicationController.subscribeUserAndCreateStatistic(Long.valueOf(applicationVersionId), request);

        String itmsURL = "itms-services://?action=download-manifest&url=" + url.toString();

        Property property = new Property();
        property.setKey("URL");
        property.setValue(itmsURL);

        return property;
    }
View Full Code Here

Examples of com.starbase.starteam.Property

        // We always display the ItemID (OBJECT_ID) and primary descriptor.
        int nProperties = 2;

        // We'll need this item type's primary descriptor.
        Property p1 = getPrimaryDescriptor(t);

        // Does this item type have a secondary descriptor?
        // If so, we'll need it.
        Property p2 = getSecondaryDescriptor(t);

        if (p2 != null) {
            nProperties++;
        }

        // Now, build an array of the property names.
        String[] strNames = new String[nProperties];
        int iProperty = 0;

        strNames[iProperty++] = s.getPropertyNames().OBJECT_ID;
        strNames[iProperty++] = p1.getName();
        if (p2 != null) {
            strNames[iProperty++] = p2.getName();
        }

        // Pre-fetch the item properties and cache them.
        f.populateNow(t.getName(), strNames, -1);
View Full Code Here

Examples of com.steadystate.css.dom.Property

                throws CSSException {
            CSSStyleDeclarationImpl decl =
                (CSSStyleDeclarationImpl) this._nodeStack.peek();
            try
            {
                Property property =
                    new Property(name, new CSSValueImpl(value), important);
                this.addLocator(property);
                decl.addProperty(property);
            }
            catch (DOMException e)
            {
View Full Code Here

Examples of com.sun.enterprise.ee.admin.lbadmin.beans.Property

        }

        if ((pRdrs != null) && (pRdrs.length > 0 ) ){
            Property[] props = new Property[pRdrs.length];
            for(int i =0; i < pRdrs.length; i++) {
                props[i] = new Property();
                pRdrs[i].accept( new PropertyVisitor(props[i]));
            }
            _lb.setProperty2(props);
        }
View Full Code Here

Examples of com.sun.star.beans.Property

        String constrained = "";
        String normal = "";

        for (int i = 0; i < properties.length; i++) {

            Property property = properties[i];
            String name = property.Name;
            log.println("Checking '"+name+"'");
            boolean isWritable = ((property.Attributes &
                PropertyAttribute.READONLY) == 0);
            boolean isNotNull = ((property.Attributes &
View Full Code Here

Examples of com.sun.tools.xjc.api.Property

            addVoidReturn(method);
            return;
        }
        method.setReturn(null);
        if (outputBlock.size() == 1) {
            Property outElement = outputBlock.iterator().next();
            boolean sameWrapperChild = false;
            for (Property inElement : inputBlock) {
                if (isSameWrapperChild(inElement, outElement)) {
                    addParameter(method, getParameterFromProperty(outElement, JavaType.Style.INOUT,
                                                                  outputPart));
                    sameWrapperChild = true;
                    if (method.getReturn() == null) {
                        addVoidReturn(method);
                    }
                    break;
                }
            }
            if (!sameWrapperChild) {
                method.setReturn(getReturnFromProperty(outElement, outputPart));
            }
            return;
        }
        method.setReturn(null);
        for (Property outElement : outputBlock) {
            if ("return".equals(outElement.elementName().getLocalPart())) {
                if (method.getReturn() != null) {
                    org.objectweb.celtix.common.i18n.Message msg =
                        new org.objectweb.celtix.common.i18n.Message("WRAPPER_STYLE_TWO_RETURN_TYPES", LOG);
                    throw new ToolException(msg);
                }
View Full Code Here

Examples of com.sun.xml.bind.v2.runtime.property.Property

        startElement(attributeName);
    }

    private RuntimePropertyInfo getCurrentElementRuntimePropertyInfo() {
        final XMLSerializer xs = XMLSerializer.getInstance();
        final Property cp = (xs == null) ? null : xs.getCurrentProperty();
        return (cp == null) ? null : cp.getInfo();
    }
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.runtime.property.Property

        Collection<? extends RuntimePropertyInfo> ps = ci.getProperties();
        this.properties = new Property[ps.size()];
        int idx=0;
        boolean elementOnly = true;
        for( RuntimePropertyInfo info : ps ) {
            Property p = PropertyFactory.create(owner,info);
            if(info.id()==ID.ID)
                idProperty = p;
            properties[idx++] = p;
            elementOnly &= info.elementOnlyContent();
        }
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.