Package org.dbunit.ant.adapter
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidconfigureProject(String filename) voidconfigureProject(String filename, int logLevel) voidexecuteTarget(String targetName) getError()getLog()org.apache.tools.ant.Project
-
Constructor Details
-
BuildFileExtension
public BuildFileExtension()
-
-
Method Details
-
after
protected void after() -
getLog
-
getFullLog
-
getOutput
-
getError
-
configureProject
- 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
-
getProject
public org.apache.tools.ant.Project getProject() -
getOutputDir
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Throws:
Exception
-