Skip to content

Commit fc97673

Browse files
[issue-1089] test(codegen): fix exception handling in NestedGroupDelimiterTest
The compilation error in NestedGroupDelimiterTest.java was fixed by replacing the catch of MojoExecutionException with CodeGenerationException and removing the unused import. All tests in the quickfixj-codegenerator module passed successfully after the fix. The change ensures correct exception handling matching the generator's behavior and preserves test assertions.
1 parent 1564c66 commit fc97673

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

quickfixj-codegenerator/src/test/java/org/quickfixj/codegenerator/NestedGroupDelimiterTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import java.nio.charset.StandardCharsets;
88

99
import org.apache.commons.io.FileUtils;
10-
import org.apache.maven.plugin.MojoExecutionException;
1110
import org.junit.Before;
1211
import org.junit.Test;
1312

@@ -52,7 +51,7 @@ public void generatesGroupWithDeeplyNestedDelimiter() throws Exception {
5251

5352
try {
5453
generator.generate(task);
55-
} catch (MojoExecutionException e) {
54+
} catch (CodeGenerationException e) {
5655
// Surface with context for easier debugging in CI
5756
throw new AssertionError("Code generation failed: " + e.getMessage(), e);
5857
}

0 commit comments

Comments
 (0)