Skip to content

Commit

Permalink
Use hand-crafted moditect date and change ObjectMapper in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sri-adarsh-kumar committed Nov 5, 2024
1 parent 487cbf9 commit f347a4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions javax-money/src/moditect/module-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//TODO how is this generated
// Generated 27-Mar-2019 using Moditect maven plugin
// Hand-crafted 05-Nov-2024
module com.fasterxml.jackson.datatype.money {
requires com.fasterxml.jackson.annotation;
requires com.fasterxml.jackson.core;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.fasterxml.jackson.datatype.money;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator;
import org.javamoney.moneta.CurrencyUnitBuilder;
import org.junit.Test;
Expand All @@ -14,7 +15,7 @@

public final class CurrencyUnitDeserializerTest {

private final ObjectMapper unit = new ObjectMapper().registerModule(new MoneyModule());
private final ObjectMapper unit = JsonMapper.builder().addModule(new MoneyModule()).build();

@Test
public void shouldDeserialize() throws IOException {
Expand Down

0 comments on commit f347a4c

Please sign in to comment.