Class ModuleReportTest

java.lang.Object
com.guinetik.terminaljavadocs.plugin.ModuleReportTest

public class ModuleReportTest extends Object
Unit tests for ModuleReport.

Validates the immutable DTO behavior including construction, null handling, and getter methods.

  • Constructor Details

    • ModuleReportTest

      public ModuleReportTest()
  • Method Details

    • testModuleReportConstruction

      public void testModuleReportConstruction()
      Verifies that all constructor arguments are correctly stored and returned by their respective getter methods.
    • testModuleReportWithNullDescription

      public void testModuleReportWithNullDescription()
      Verifies that a null description is preserved (not converted to empty string). This matches the behavior expected when a module has no description in its POM.
    • testModuleReportWithEmptyDescription

      public void testModuleReportWithEmptyDescription()
      Verifies that an empty string description is preserved as-is. Distinguishes between "no description" (null) and "empty description" ("").
    • testModuleReportEquality

      public void testModuleReportEquality()
      Verifies that two ModuleReport instances with identical values return the same values from their getters.

      Note: ModuleReport does not override equals/hashCode, so this test validates value equality through getters, not object equality.