GH-227 - ApplicationModulesExporter now writes JSON containing named interfaces.

This commit is contained in:
Oliver Drotbohm
2023-06-30 17:29:56 +02:00
parent a3ed26ea08
commit 9bfcf71a5d
3 changed files with 67 additions and 17 deletions

View File

@@ -33,10 +33,14 @@ public class ApplicationModulesExporterUnitTests {
@Test // #119
void rendersApplicationModulesAsJson() {
var json = new ApplicationModulesExporter(ApplicationModules.of(Application.class)).toJson();
var exporter = new ApplicationModulesExporter(ApplicationModules.of(Application.class));
assertThatNoException().isThrownBy(() -> {
new ObjectMapper().readTree(json);
new ObjectMapper().readTree(exporter.toFullJson());
});
assertThatNoException().isThrownBy(() -> {
new ObjectMapper().readTree(exporter.toJson());
});
}
}