Skip to content

Commit ad092be

Browse files
committed
GH-1717 - Remove integration tests only applicable to 2.1.
1 parent 00930d1 commit ad092be

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

spring-modulith-core/src/test/java/org/springframework/modulith/core/FormattableTypeUnitTests.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import static org.assertj.core.api.Assertions.*;
1919

2020
import 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

0 commit comments

Comments
 (0)