Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-toepfer committed May 29, 2024
1 parent 547f60b commit fc722dd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import io.github.sebastiantoepfer.ddd.media.core.HashMapMedia;
import jakarta.json.Json;
import jakarta.json.JsonValue;
import java.math.BigDecimal;
import java.math.BigInteger;
import org.junit.jupiter.api.Test;

class StaticAnnotationTest {
Expand Down Expand Up @@ -62,15 +64,15 @@ void should_be_printable_with_null_as_value() {
void should_be_printable_with_decimalnumber_as_value() {
assertThat(
new StaticAnnotation("default", Json.createValue(32)).printOn(new HashMapMedia()),
hasEntry("default", 32L)
hasEntry("default", BigInteger.valueOf(32L))
);
}

@Test
void should_be_printable_with_decimal_as_value() {
assertThat(
new StaticAnnotation("default", Json.createValue(32.1)).printOn(new HashMapMedia()),
hasEntry("default", 32.1)
hasEntry("default", BigDecimal.valueOf(32.1))
);
}

Expand Down

0 comments on commit fc722dd

Please sign in to comment.