From 886bee9bb481637bf3fd49f9d26adca3183b37e0 Mon Sep 17 00:00:00 2001 From: monniechuang Date: Mon, 27 May 2024 19:47:47 -0700 Subject: [PATCH] Add unit test for Model groupId --- .../src/test/java/org/apache/maven/model/ModelTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maven-model/src/test/java/org/apache/maven/model/ModelTest.java b/maven-model/src/test/java/org/apache/maven/model/ModelTest.java index 76a1e8282213..2c83d4677964 100644 --- a/maven-model/src/test/java/org/apache/maven/model/ModelTest.java +++ b/maven-model/src/test/java/org/apache/maven/model/ModelTest.java @@ -67,4 +67,11 @@ void testEqualsIdentity() { void testToStringNullSafe() { assertNotNull(new Model().toString()); } + + @Test + void testModelGroupId() { + Model model = new Model(); + model.setGroupId("org.apache.maven"); + assertEquals("org.apache.maven", model.getGroupId()); + } }