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

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


        this.delegate = delegate;
    }

    public DelegatingBatchTest(final Project project)
    {
        this(new BatchTest(project));
    }
View Full Code Here


    throws Exception
  {
    if (!pattern.endsWith(".java")){
      pattern += ".java";
    }
    BatchTest batch = junit.createBatchTest();
    IClasspathEntry[] entries = javaProject.getResolvedClasspath(true);
    for (IClasspathEntry entry : entries){
      if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE){
        String path = ProjectUtils.getFilePath(
            javaProject.getProject(), entry.getPath().toOSString());
        FileSet fileset = new FileSet();
        fileset.setDir(new File(path));
        fileset.setIncludes(pattern);
        batch.addFileSet(fileset);
      }
    }
  }
View Full Code Here

        showOutput = value;
    }

    public BatchTest createBatchTest()
    {
        BatchTest test = new BatchTest(getProject());
        batchTests.add(test);
        return test;
    }
View Full Code Here

        {
            allTests = new ArrayList();
            Iterator i = batchTests.iterator();
            while(i.hasNext())
            {
                BatchTest test = (BatchTest) i.next();
                Enumeration e = test.elements();
                while(e.hasMoreElements())
                {
                    JUnitTest jtest = (JUnitTest) e.nextElement();
                    allTests.add(jtest.getName());
                }
View Full Code Here

   
    junit.addConfiguredSysproperty(mxtest.getCoberturaFileProperty());
    junit.addConfiguredSysproperty(mxtest.getEmmaFileProperty());
    junit.addConfiguredSysproperty(mxtest.getEmmaMergeProperty());
   
    BatchTest batchTest = junit.createBatchTest();
    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);
View Full Code Here

TOP

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

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.