Class ByteBuddyMojo.ForTestTypes

java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.bytebuddy.build.maven.ByteBuddyMojo
net.bytebuddy.build.maven.ByteBuddyMojo.ForTestTypes
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Enclosing class:
ByteBuddyMojo

@Mojo(name="transform-test", defaultPhase=PROCESS_TEST_CLASSES, threadSafe=true, requiresDependencyResolution=TEST) public static class ByteBuddyMojo.ForTestTypes extends ByteBuddyMojo
A Byte Buddy plugin that transforms a project's test class files.
  • Constructor Details

    • ForTestTypes

      public ForTestTypes()
  • Method Details

    • getOutputDirectory

      protected String getOutputDirectory()
      Description copied from class: ByteBuddyMojo
      Returns the output directory to search for class files.
      Specified by:
      getOutputDirectory in class ByteBuddyMojo
      Returns:
      The output directory to search for class files.
    • getSourceDirectory

      @MaybeNull protected String getSourceDirectory()
      Description copied from class: ByteBuddyMojo
      Returns the source directory that determines the class files to process.
      Specified by:
      getSourceDirectory in class ByteBuddyMojo
      Returns:
      The source directory that serves as an input for the transformation.
    • getClassPathElements

      protected List<String> getClassPathElements() throws org.apache.maven.plugin.MojoFailureException
      Description copied from class: ByteBuddyMojo
      Returns the class path elements of the relevant output directory.
      Specified by:
      getClassPathElements in class ByteBuddyMojo
      Returns:
      The class path elements of the relevant output directory.
      Throws:
      org.apache.maven.plugin.MojoFailureException - If the class path cannot be resolved.