Class TestApplicationModules

java.lang.Object
org.springframework.modulith.test.TestApplicationModules

public class TestApplicationModules extends Object
Utility methods to work with test ApplicationModules. Not intended public API!
Author:
Oliver Drotbohm
  • Constructor Details

    • TestApplicationModules

      public TestApplicationModules()
  • Method Details

    • of

      public static ApplicationModules of(String basePackage)
      Creates an ApplicationModules instance from the given package but only inspecting the test code.
      Parameters:
      basePackage - must not be null or empty.
      Returns:
      will never be null.
    • of

      public static ApplicationModules of(Class<?> applicationClass)
      Creates an ApplicationModules instance from the given application class but only inspecting the test code.
      Parameters:
      applicationClass - must not be null or empty.
      Returns:
      will never be null.
      Since:
      1.2