diff --git a/src/test/java/tech/jhipster/lite/module/infrastructure/secondary/JHipsterModulesAssertions.java b/src/test/java/tech/jhipster/lite/module/infrastructure/secondary/JHipsterModulesAssertions.java index 53058efacc..eb376f5a3d 100644 --- a/src/test/java/tech/jhipster/lite/module/infrastructure/secondary/JHipsterModulesAssertions.java +++ b/src/test/java/tech/jhipster/lite/module/infrastructure/secondary/JHipsterModulesAssertions.java @@ -338,6 +338,9 @@ private void assertFileExists() { assertThat(Files.exists(path)).as(fileNotFoundMessage(path, projectFolder)).isTrue(); } + /** + * Verifies that the file content matches the saved snapshot, using ApprovalTests. + */ public JHipsterModuleFileAsserter matchingSavedSnapshot() { String shortFileName = Arrays.stream(file.split("/")).toList().getLast(); ApprovalFailureReporter reporter = new FirstWorkingReporter(new AutoApproveWhenEmptyReporter(), new DiffReporter());