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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static class 
    Custom ApplicationModulesFactory to bootstrap an ApplicationModules instance only considering test code.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.modulith.core.ApplicationModules
    of(Class<?> applicationClass)
    Creates an ApplicationModules instance from the given application class but only inspecting the test code.
    static org.springframework.modulith.core.ApplicationModules
    of(String basePackage)
    Creates an ApplicationModules instance from the given package but only inspecting the test code.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestApplicationModules

      public TestApplicationModules()
  • Method Details

    • of

      public static org.springframework.modulith.core.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 org.springframework.modulith.core.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