Class TestLauncher

All Implemented Interfaces:
AutoCloseable, Launcher

public class TestLauncher extends BuildProjectLauncher
An implementation of a Launcher that launches a build configuration. It expects that the JDrupes Builder project has already been compiled and its classes are available on the classpath. It can be used to launch a build configuration from a unit test where the context is already is bound.
  • Constructor Details

    • TestLauncher

      public TestLauncher(ClassLoader classloader, Path buildRoot, String[] args)
      Initializes a new test launcher.
      Parameters:
      classloader - the classloader
      buildRoot - the build root
      args - the args
  • Method Details

    • resources

      public <T extends Resource> Stream<T> resources(Stream<Project> projects, ResourceRequest<T> request)
      Description copied from interface: Launcher
      Provide the requested resources from the given projects, using the context from the root project. The launcher must automatically regenerate the root project if Cleanliness was requested.
      Specified by:
      resources in interface Launcher
      Overrides:
      resources in class AbstractLauncher
      Type Parameters:
      T - the requested type
      Parameters:
      projects - the projects
      request - the request
      Returns:
      the results