Skip to content

Commit 4575c56

Browse files
committed
test: remove duplicate test shouldSerializeFriendlyFormatWithUrl62Override
Identical mapper setup and assertions as shouldRespectPerFieldOverrideWhenModuleIsRaw
1 parent 503d499 commit 4575c56

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

friendly-id-jackson-datatype/src/test/java/com/devskiller/friendly_id/spring/RawFormatModuleTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,4 @@ void shouldRespectPerFieldOverrideWhenModuleIsRaw() {
5454
assertThat(json).contains("\"friendlyId\":\"f088ce5b-9279-4cc3-946a-c15ad740dd6d\"");
5555
}
5656

57-
@Test
58-
void shouldSerializeFriendlyFormatWithUrl62Override() {
59-
var mapper = JsonMapper.builder()
60-
.addModule(new FriendlyIdModule(FriendlyIdFormat.RAW))
61-
.build();
62-
63-
// Foo: rawUuid=@IdFormat(RAW), friendlyId=no annotation (module default RAW)
64-
// Both should be standard UUID when module is RAW
65-
var foo = new Foo(uuid, uuid);
66-
String json = mapper.writeValueAsString(foo);
67-
68-
assertThat(json).contains("\"rawUuid\":\"f088ce5b-9279-4cc3-946a-c15ad740dd6d\"");
69-
assertThat(json).contains("\"friendlyId\":\"f088ce5b-9279-4cc3-946a-c15ad740dd6d\"");
70-
}
7157
}

0 commit comments

Comments
 (0)