File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
friendly-id-jackson-datatype/src/test/java/com/devskiller/friendly_id/spring Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments