chore: align pom metadata with runtime stack
This commit is contained in:
@@ -60,6 +60,18 @@ class MavenModuleProfileTest {
|
||||
.doesNotContain("车辆状态/日统计消费");
|
||||
}
|
||||
|
||||
@Test
|
||||
void rootPomDescriptionMatchesCurrentRuntimeStack() throws Exception {
|
||||
Document pom = rootPom();
|
||||
String description = firstDirectChild(pom.getDocumentElement(), "description").getTextContent();
|
||||
|
||||
assertThat(description)
|
||||
.contains("Java 25")
|
||||
.contains("Spring Boot " + projectProperty(pom, "spring-boot.version"))
|
||||
.contains("Netty " + projectProperty(pom, "netty.version"))
|
||||
.doesNotContain("Spring Boot 3.4");
|
||||
}
|
||||
|
||||
private static Document rootPom() throws Exception {
|
||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
|
||||
|
||||
Reference in New Issue
Block a user