Package org.apache.tools.ant.taskdefs.optional.junit

Examples of org.apache.tools.ant.taskdefs.optional.junit.FormatterElement


    Field forkedPathChecked =
      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


        args.add("showoutput=" + Boolean.toString(showOutput));

        Iterator i = formatters.iterator();
        while(i.hasNext())
        {
            FormatterElement formatter = (FormatterElement) i.next();
            if (formatter.shouldUse(this))
            {
                StringBuffer buffer = new StringBuffer("formatter=");
                buffer.append(formatter.getClassname());
                final File outputFile = getOutput(suite, formatter);
                if (outputFile != null)
                {
                    buffer.append(',');
                    buffer.append(outputFile);
View Full Code Here

    {
        test.setCounts(1, 0, 1);
        test.setProperties(getProject().getProperties());
        for (int i = 0; i < feArray.length; i++)
        {
            FormatterElement fe = feArray[i];

            if (!fe.shouldUse(this))
            {
                continue;
            }

            File outFile = getOutput(test.getName(), fe);

            Method method = fe.getClass().getDeclaredMethod("createFormatter", new Class[] {ClassLoader.class});
            method.setAccessible(true);

            JUnitResultFormatter formatter = (JUnitResultFormatter) method.invoke(fe, new Object[] {getClass().getClassLoader()});
            if (outFile != null && formatter != null )
            {
View Full Code Here

    batchTest.setFork(true);
    batchTest.setTodir(mxtest.getUnitTestOutputDir());
    batchTest.addFileSet(mxtest.getUnitTests());
   
    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) {
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.taskdefs.optional.junit.FormatterElement

Copyright © 2018 www.massapicom. 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.