@@ -171,7 +171,7 @@ import org.junit.jupiter.api.Test;
171171class TypeMapperShapeTest {
172172
173173 @Test
174- void roundTrips_viaInlineImplementation () {
174+ void roundTripsViaInlineImplementation () {
175175 TypeMapper identity =
176176 new TypeMapper () {
177177 @Override
@@ -279,7 +279,7 @@ class FormTypeMapperTest {
279279 }
280280
281281 @Test
282- void writeTo_isUnsupported () {
282+ void writeToIsUnsupported () {
283283 assertThatThrownBy(() - > mapper. writeTo(Map . of(" k" , " v" )))
284284 .isInstanceOf(UnsupportedOperationException . class);
285285 }
@@ -342,19 +342,19 @@ class TextTypeMapperTest {
342342 private final TextTypeMapper mapper = new TextTypeMapper ();
343343
344344 @Test
345- void reads_utf8_default () {
345+ void readsUtf8ByDefault () {
346346 byte [] body = " hello" . getBytes(StandardCharsets . UTF_8 );
347347 assertThat(mapper. readFrom(body, " text/plain" )). isEqualTo(" hello" );
348348 }
349349
350350 @Test
351- void reads_explicitCharset () {
351+ void readsExplicitCharset () {
352352 byte [] body = " räksmörgås" . getBytes(StandardCharsets . ISO_8859_1 );
353353 assertThat(mapper. readFrom(body, " text/plain; charset=ISO-8859-1" )). isEqualTo(" räksmörgås" );
354354 }
355355
356356 @Test
357- void writes_stringValueAsUtf8 () {
357+ void writesStringValueAsUtf8 () {
358358 assertThat(mapper. writeTo(" ok" )). isEqualTo(" ok" . getBytes(StandardCharsets . UTF_8 ));
359359 assertThat(mapper. writeTo(42 )). isEqualTo(" 42" . getBytes(StandardCharsets . UTF_8 ));
360360 assertThat(mapper. writeTo(null )). isEqualTo(" null" . getBytes(StandardCharsets . UTF_8 ));
@@ -485,23 +485,23 @@ class GsonJsonMapperTest {
485485 private final GsonJsonMapper mapper = new GsonJsonMapper ();
486486
487487 @Test
488- void read_preservesIntegersAsLong () {
488+ void readPreservesIntegersAsLong () {
489489 @SuppressWarnings (" unchecked" )
490490 Map<String , Object > parsed =
491491 (Map<String , Object > ) mapper. readFrom(bytes(" {\" n\" :42}" ), " application/json" );
492492 assertThat(parsed. get(" n" )). isEqualTo(42L ). isInstanceOf(Long . class);
493493 }
494494
495495 @Test
496- void read_keepsFractionalAsDouble () {
496+ void readKeepsFractionalAsDouble () {
497497 @SuppressWarnings (" unchecked" )
498498 Map<String , Object > parsed =
499499 (Map<String , Object > ) mapper. readFrom(bytes(" {\" n\" :1.5}" ), " application/json" );
500500 assertThat(parsed. get(" n" )). isEqualTo(1.5 ). isInstanceOf(Double . class);
501501 }
502502
503503 @Test
504- void read_basicTypes () {
504+ void readBasicTypes () {
505505 @SuppressWarnings (" unchecked" )
506506 Map<String , Object > parsed =
507507 (Map<String , Object > )
@@ -515,34 +515,34 @@ class GsonJsonMapperTest {
515515 }
516516
517517 @Test
518- void write_mapAndList () {
518+ void writesMapAndList () {
519519 byte [] out = mapper. writeTo(Map . of(" k" , List . of(1L , 2L )));
520520 assertThat(new String (out, StandardCharsets . UTF_8 )). isEqualTo(" {\" k\" :[1,2]}" );
521521 }
522522
523523 @Test
524- void write_instantAsIso8601 () {
524+ void writesInstantAsIso8601 () {
525525 Instant t = Instant . parse(" 2026-05-13T10:00:00Z" );
526526 assertThat(new String (mapper. writeTo(Map . of(" ts" , t)), StandardCharsets . UTF_8 ))
527527 .isEqualTo(" {\" ts\" :\" 2026-05-13T10:00:00Z\" }" );
528528 }
529529
530530 @Test
531- void write_offsetDateTimeAsIso8601 () {
531+ void writesOffsetDateTimeAsIso8601 () {
532532 OffsetDateTime t = OffsetDateTime . of(2026 , 5 , 13 , 10 , 0 , 0 , 0 , ZoneOffset . UTC );
533533 assertThat(new String (mapper. writeTo(Map . of(" ts" , t)), StandardCharsets . UTF_8 ))
534534 .isEqualTo(" {\" ts\" :\" 2026-05-13T10:00Z\" }" );
535535 }
536536
537537 @Test
538- void write_zonedDateTimeAsIso8601 () {
538+ void writesZonedDateTimeAsIso8601 () {
539539 ZonedDateTime t = ZonedDateTime . of(2026 , 5 , 13 , 10 , 0 , 0 , 0 , ZoneOffset . UTC );
540540 assertThat(new String (mapper. writeTo(Map . of(" ts" , t)), StandardCharsets . UTF_8 ))
541541 .contains(" 2026-05-13T10:00Z" );
542542 }
543543
544544 @Test
545- void write_localDateTimeAsIso8601 () {
545+ void writesLocalDateTimeAsIso8601 () {
546546 assertThat(
547547 new String (
548548 mapper. writeTo(Map . of(" ts" , LocalDateTime . of(2026 , 5 , 13 , 10 , 0 ))),
@@ -551,15 +551,15 @@ class GsonJsonMapperTest {
551551 }
552552
553553 @Test
554- void write_localDateAsIso8601 () {
554+ void writesLocalDateAsIso8601 () {
555555 assertThat(
556556 new String (
557557 mapper. writeTo(Map . of(" d" , LocalDate . of(2026 , 5 , 13 ))), StandardCharsets . UTF_8 ))
558558 .isEqualTo(" {\" d\" :\" 2026-05-13\" }" );
559559 }
560560
561561 @Test
562- void write_localTimeAsIso8601 () {
562+ void writesLocalTimeAsIso8601 () {
563563 assertThat(
564564 new String (mapper. writeTo(Map . of(" t" , LocalTime . of(10 , 0 ))), StandardCharsets . UTF_8 ))
565565 .isEqualTo(" {\" t\" :\" 10:00\" }" );
@@ -807,7 +807,7 @@ import org.junit.jupiter.api.Test;
807807class TypeMapperRegistrationTest extends ServerBaseTest {
808808
809809 @Test
810- void gsonFallback_isAutoRegisteredWhenNoJsonMapperConfigured () throws Exception {
810+ void gsonFallbackIsAutoRegisteredWhenNoJsonMapperConfigured () throws Exception {
811811 HttpHandler echo =
812812 ex - > {
813813 Object parsed = Request . parsed();
@@ -841,7 +841,7 @@ class TypeMapperRegistrationTest extends ServerBaseTest {
841841 }
842842
843843 @Test
844- void userSuppliedMapper_overridesDefault () throws Exception {
844+ void userSuppliedMapperOverridesDefault () throws Exception {
845845 TypeMapper marker = new TypeMapper () {
846846 @Override public Object readFrom (byte [] b , String h ) { return Map . of(" from" , " custom" ); }
847847 @Override public byte [] writeTo (Object v ) { return " ignored" . getBytes(StandardCharsets . UTF_8 ); }
@@ -862,7 +862,7 @@ class TypeMapperRegistrationTest extends ServerBaseTest {
862862 }
863863
864864 @Test
865- void bodyMapper_rejectsNullArgs () {
865+ void bodyMapperRejectsNullArgs () {
866866 var b = OpenApiServer . builder();
867867 assertThatThrownBy(() - > b. bodyMapper(null , new GsonOnlyMapper ()))
868868 .isInstanceOf(NullPointerException . class);
@@ -1298,7 +1298,7 @@ import org.junit.jupiter.api.Test;
12981298class RequestResponseGatewayTest extends ServerBaseTest {
12991299
13001300 @Test
1301- void respondJson_writesBodyAndContentType () throws Exception {
1301+ void respondJsonWritesBodyAndContentType () throws Exception {
13021302 RequestHandler echo =
13031303 req - > req. respond(200 ). json(Map . of(" op" , req. operationId()));
13041304 server =
@@ -1326,7 +1326,7 @@ class RequestResponseGatewayTest extends ServerBaseTest {
13261326 }
13271327
13281328 @Test
1329- void respondEmpty_uses204Style () throws Exception {
1329+ void respondEmptyUses204Style () throws Exception {
13301330 RequestHandler ok = req - > req. respond(204 ). empty();
13311331 server =
13321332 OpenApiServer . builder()
@@ -1347,7 +1347,7 @@ class RequestResponseGatewayTest extends ServerBaseTest {
13471347 }
13481348
13491349 @Test
1350- void respondStream_chunkedEncoding () throws Exception {
1350+ void respondStreamUsesChunkedEncoding () throws Exception {
13511351 RequestHandler streamer =
13521352 req - > {
13531353 try (var out = req. respond(200 ). contentType(" text/plain" ). stream()) {
0 commit comments