Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public final class DomainCollectionReleaseMetadata {

@Autowired
public DomainCollectionReleaseMetadata(
ObjectMapper mapper,
@Value("${GIT_COMMIT:}") String expectedRelease) {
this(mapper, expectedRelease, Path.of("release.json").toAbsolutePath().normalize());
this(new ObjectMapper(), expectedRelease,
Path.of("release.json").toAbsolutePath().normalize());
}

DomainCollectionReleaseMetadata(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ class DomainCollectionReleaseMetadataTest {
private static final String RELEASE = "a".repeat(40);

@Test
void springSelectsTheProductionInjectionConstructor() {
void springCreatesProductionMetadataWithoutAnObjectMapperBean() {
try (var context = new AnnotationConfigApplicationContext()) {
context.registerBean(ObjectMapper.class);
context.register(DomainCollectionReleaseMetadata.class);
context.refresh();

Expand Down
Loading