Class AbstractXmlPluginMojoRuleTest

java.lang.Object
au.com.acegi.xmlformat.AbstractXmlPluginMojoRuleTest

public class AbstractXmlPluginMojoRuleTest extends Object
Integration-style tests for AbstractXmlPlugin subclasses using the Maven Plugin Testing Harness (MojoRule).

The harness is used specifically for its setVariableValueToObject utility, which reflects into private @Parameter fields that have no package-private setters — such as tabIndent, lineEnding, keepBlankLines, expandEmptyElements, and indentSize.

Mojos are created directly via new rather than Plexus container lookup (which requires a pre-generated Sisu component index). The package-private setters in AbstractXmlPlugin handle the mandatory parameters while the harness handles the remainder via reflection.

  • Constructor Details

    • AbstractXmlPluginMojoRuleTest

      public AbstractXmlPluginMojoRuleTest()