Examples of Description


Examples of org.junit.runner.Description

        return new UnderscoredToCapitalized();
    }

    @Override
    public Description getDescription() {
        Description description = Description.createSuiteDescription(testClass());
        for (String path : paths)
            description.addChild(createDescriptionForPath(path));

        return description;
    }
View Full Code Here

Examples of org.junit.runner.Description

   
  }
 
  @Override
  public Description getDescription() {   
    Description desc = Description.createSuiteDescription(prefix);
    this.desc = desc;
   
    try {
      List<String> modules = getRecursiveModuleList(URIUtil.create("rascal", "", "/" + prefix.replaceAll("::", "/")), evaluator.getResolverRegistry());
     
      for (String module : modules) {
        String name = prefix + "::" + module;
       
        try {
          evaluator.doImport(new NullRascalMonitor(), name);
        }
        catch (Throwable e) {
          throw new RuntimeException("Could not import " + name + " for testing...", e);
        }
       
        Description modDesc = Description.createSuiteDescription(name);
        desc.addChild(modDesc);
       
        for (AbstractFunction f : heap.getModule(name.replaceAll("\\\\","")).getTests()) {
          if (!(f.hasTag("ignore") || f.hasTag("Ignore") || f.hasTag("ignoreInterpreter") || f.hasTag("IgnoreInterpreter"))) {
            modDesc.addChild(Description.createTestDescription(getClass(), computeTestName(f.getName(), f.getAst().getLocation())));
          }
        }
      }
     
   
View Full Code Here

Examples of org.milyn.edisax.model.internal.Description

    String[] fields = segmentReader.getCurrentSegmentFields();
    String messageName = fields[2];
    EdifactModel mappingModel = registry.getMappingModel(messageName, segmentReader.getDelimiters());
        Edimap ediMap = mappingModel.getEdimap();

        Description description = ediMap.getDescription();
        AttributesImpl attrs = new AttributesImpl();
        String namespace = description.getNamespace();
        String commonNS = null;
        String messageNSPrefix = null;
        if(namespace != null && !namespace.equals(XMLConstants.NULL_NS_URI)) {
            int nameComponentIndex = namespace.lastIndexOf(":");
            if(nameComponentIndex != -1) {
                commonNS = namespace.substring(0, nameComponentIndex) + ":common";
                messageNSPrefix = description.getName().toLowerCase();
                attrs.addAttribute(XMLConstants.XMLNS_ATTRIBUTE_NS_URI, "c", "xmlns:c", "CDATA", commonNS);
                attrs.addAttribute(XMLConstants.XMLNS_ATTRIBUTE_NS_URI, messageNSPrefix, "xmlns:" + messageNSPrefix, "CDATA", namespace);
            }
        }
View Full Code Here

Examples of org.modeshape.common.annotation.Description

        } catch (NoSuchFieldException e) {
            // Nothing to do here

        }
        if (description == null) {
            Description desc = getAnnotation(Description.class, field, getters, setters);
            if (desc != null) {
                description = localizedString(desc.i18n(), desc.value());
                inferred = false;
            }
        }
        if (label == null) {
            Label labelAnnotation = getAnnotation(Label.class, field, getters, setters);
View Full Code Here

Examples of org.mokai.annotation.Description

  }

  private static String getDescription(Class<?> clazz) {
    String description = "";
    if (clazz.isAnnotationPresent(Description.class)) {
      Description descriptionAnnotation = clazz.getAnnotation(Description.class);
      description = descriptionAnnotation.value();
    }

    return description;
  }
View Full Code Here

Examples of org.neo4j.jmx.Description

    }

    @Override
    protected String getDescription( MBeanInfo info )
    {
        Description description = describeClass();
        if ( description != null ) return description.value();
        return super.getDescription( info );
    }
View Full Code Here

Examples of org.objectweb.speedo.ant.AbstractEnhancerTask.Description

        persistdesc.setDir(src);
        persistdesc.setIncludes("**/*.jdo");
    }

    public Description createJdopath() {
        Description d = new Description();
        this.persistdesc = d;
        d.setProject(getProject());
        return d;
    }
View Full Code Here

Examples of org.omg.CORBA.ContainedPackage.Description

        Any any = getORB().create_any();

        ValueDescriptionHelper.insert(any, md);

        return new Description(DefinitionKind.dk_Value, any);
    }
View Full Code Here

Examples of org.omg.CORBA.ContainerPackage.Description

        Description[] ret = new Description[returnSize];

        for (int i = 0; i < returnSize; ++i) {
            org.omg.CORBA.ContainedPackage.Description d = c[i].describe();

            ret[i] = new Description(c[i], d.kind, d.value);
        }

        return ret;
    }
View Full Code Here

Examples of org.opengis.style.Description

    Graphic[] legendCopy = rule.getLegendGraphic();
    for (int i = 0; i < legendCopy.length; i++) {
      legendCopy[i] = copy(legendCopy[i]);
    }

    Description descCopy = rule.getDescription();
    descCopy = copy(descCopy);

    copy = sf.createRule();
    copy.symbolizers().addAll(symsCopy);
    copy.setDescription(descCopy);
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.