Examples of addFormatter()


Examples of cucumber.runtime.RuntimeOptions.addFormatter()

        }

        final boolean reported = Boolean.parseBoolean(cukespaceConfig.getProperty(CucumberConfiguration.REPORTABLE, "false"));
        final StringBuilder reportBuilder = new StringBuilder();
        if (reported) {
            runtimeOptions.addFormatter(new JSONFormatter(reportBuilder));
        }

        final Collection<Class<?>> glues = new LinkedList<Class<?>>();
        final InputStream gluesIs = tccl.getResourceAsStream(ClientServerFiles.GLUES_LIST);
        if (gluesIs != null) {
View Full Code Here

Examples of de.innovationgate.utils.FormattingChain.addFormatter()

        if (includeFormatting == true) {
            // Get formatter objects regarding the Attributes format and
            // encoding

            // format Attribute
            formatters.addFormatter(new TagOutputFormatter(status.format, getTMLContext(), stringToBoolean(getTrim())));

            // Encode the result regarding the encode attribute
            String encodersList = getStatus().encode;
            if (encodersList != null && !encodersList.equals("none")) {
                Iterator encoders = WGUtils.deserializeCollection(encodersList, ",", true).iterator();
View Full Code Here

Examples of de.innovationgate.utils.FormattingChain.addFormatter()

                Iterator encoders = WGUtils.deserializeCollection(encodersList, ",", true).iterator();
                while (encoders.hasNext()) {
                    String encoder = (String) encoders.next();
                    try {
                        ObjectFormatter formatter = getCore().getEncodingFormatter(encoder, getTMLContext());
                        formatters.addFormatter(formatter);
                    }
                    catch (FormattingException e) {
                        addWarning("No encoding formatter registered under encoding key '" + encoder + "'");
                    }
                }
View Full Code Here

Examples of de.innovationgate.utils.FormattingChain.addFormatter()

        FormattingChain formatters = new FormattingChain();
        Iterator encoders = WGUtils.deserializeCollection(encode, ",", true).iterator();
        while (encoders.hasNext()) {
            String encoder = (String) encoders.next();
            ObjectFormatter formatter = getwgacore().getEncodingFormatter(encoder, this);
            formatters.addFormatter(formatter);
        }
       
        return formatters.format(input);
       
    }
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.addFormatter()

      JUnitTask.class.getDeclaredField("forkedPathChecked");
    forkedPathChecked.setAccessible(true);
    forkedPathChecked.set(junit, true);

    FormatterElement formatter = new FormatterElement();
    junit.addFormatter(formatter);
    formatter.setClassname("org.eclim.plugin.jdt.command.junit.ResultFormatter");
    formatter.setUseFile(false);

    return junit;
  }
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.addFormatter()

   
    TypeAttribute xml = (TypeAttribute) TypeAttribute.getInstance(TypeAttribute.class, "xml");
    FormatterElement formatter = new FormatterElement();
    formatter.setProject(mxtest.getProject());
    formatter.setType(xml);
    junit.addFormatter(formatter);

    // configure properties from Moxie file
    MaxmlMap testAttributes = mxtest.getBuild().getConfig().getTaskAttributes("junit");
    if (testAttributes != null) {
      AttributeReflector.setAttributes(mxtest.getProject(), junit, testAttributes);
View Full Code Here

Examples of org.wso2.carbon.relay.mediators.builder.BuilderMediator.addFormatter()

            }

            OMAttribute formatterClassAtt = e.getAttribute(FORMATTER_CLASS_ATT);
            if (formatterClassAtt != null && formatterClassAtt.getAttributeValue() != null) {
                try {
                    builderMediator.addFormatter(contentTypeAtt.getAttributeValue(),
                        MessageBuilder.createFormatter(formatterClassAtt.getAttributeValue()));
                } catch (AxisFault axisFault) {
                    handleException("Error creating message formatter: "
                            + formatterClassAtt.getAttributeValue(), axisFault);
                }
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.