yesamer commented on code in PR #3881:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3881#discussion_r2031237762


##########
kogito-codegen-modules/kogito-codegen-manager/src/test/java/org/kie/kogito/codegen/manager/util/CodeGenManagerUtilTest.java:
##########
@@ -60,17 +50,18 @@ class AbstractKieMojoTest {
     @MethodSource("getGeneratorNamesStream")
     void overwritePropertiesIfNeededWithNull(String generatorName) {
         String expectedWrittenProperty = Generator.CONFIG_PREFIX + 
generatorName;
-        AbstractKieMojo abstractKieMojo = new AbstractKieMojo() {
-            @Override
-            public void execute() throws MojoExecutionException, 
MojoFailureException {
-            }
-        };
-        KogitoBuildContext kogitoBuildContextMocked = 
mock(KogitoBuildContext.class);
-        abstractKieMojo.overwritePropertiesIfNeeded(kogitoBuildContextMocked);
+        KogitoBuildContext kogitoBuildContextMocked = 
Mockito.mock(KogitoBuildContext.class);
+        CodeGenManagerUtil.ProjectParameters parameters = new 
CodeGenManagerUtil.ProjectParameters(CodeGenManagerUtil.Framework.QUARKUS,
+                null,

Review Comment:
   As this use case scenario is required in the Test scope only, I guess it's 
reasonable to keep it as it is.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to