Class BuildFileExtension

java.lang.Object
org.dbunit.ant.adapter.BuildFileExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.Extension

public class BuildFileExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback
The BuildFileExtension class provides functionality to configure and execute Apache Ant build files for testing purposes. It has been ported over from the ant-testutils.jar which only supports junit4. See BuildFileRule for comparison.
Since:
Sep 21, 2024
Version:
$Revision$ $Date$
Author:
Andrew Johnson, Last changed by: $Author$
See Also:
  • invalid reference
    org.apache.tools.ant.BuildFileRule
  • Constructor Details

    • BuildFileExtension

      public BuildFileExtension()
  • Method Details

    • after

      protected void after()
    • getLog

      public String getLog()
    • getFullLog

      public String getFullLog()
    • getOutput

      public String getOutput()
    • getError

      public String getError()
    • configureProject

      public void configureProject(String filename) throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • configureProject

      public void configureProject(String filename, int logLevel) throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • executeTarget

      public void executeTarget(String targetName)
    • getProject

      public org.apache.tools.ant.Project getProject()
    • getOutputDir

      public File getOutputDir()
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Throws:
      Exception