File tree Expand file tree Collapse file tree
spring-modulith-core/src/test/java/org/springframework/modulith/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import static org .assertj .core .api .Assertions .*;
1919
2020import org .junit .jupiter .api .Test ;
21- import org .springframework .modulith .core .FormattableType .NonModuleTypeAbbreviation ;
2221
2322/**
2423 * Unit tests for {@link FormattableType}.
@@ -51,16 +50,7 @@ void abbreviatesPrimitiveTypeForNonModuleType() {
5150
5251 var module = TestUtils .getApplicationModule ("example.springbean" );
5352
54- var type = FormattableType .of (long .class );
55-
56- assertThatNoException ()
57- .isThrownBy (() -> type .getAbbreviatedFullName (module , NonModuleTypeAbbreviation .ABBREVIATED ));
58-
59- assertThat (type .getAbbreviatedFullName (module , NonModuleTypeAbbreviation .ABBREVIATED ))
60- .isEqualTo ("long" );
61-
62- assertThat (type .getAbbreviatedFullName (module , NonModuleTypeAbbreviation .FULL_NAME ))
63- .isEqualTo ("long" );
53+ assertThat (FormattableType .of (long .class ).getAbbreviatedFullName (module )).isEqualTo ("long" );
6454 }
6555
6656 @ Test // GH-1713
You can’t perform that action at this time.
0 commit comments