Skip to content

Commit

Permalink
Add PCT test class validation in maven plugin (finos#928)
Browse files Browse the repository at this point in the history
* Update GeneratePCTReport.java

* Update GeneratePCTReport.java
  • Loading branch information
mrudula-gs authored Feb 4, 2025
1 parent caf0876 commit 89c03c6
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,17 @@ public void execute() throws MojoExecutionException
try
{
Thread.currentThread().setContextClassLoader(Shared.buildClassLoader(this.project, savedClassLoader, getLog()));

for (String testClass : PCTTestSuites)
{
try
{
Thread.currentThread().getContextClassLoader().loadClass(testClass);
}
catch (ClassNotFoundException e)
{
throw new MojoExecutionException("PCT test class not found: " + testClass);
}
}
if (mode.equals(Mode.Compiled))
{
PCTReportGenerator.generateCompiled(targetDir, Lists.mutable.withAll(PCTTestSuites));
Expand Down

0 comments on commit 89c03c6

Please sign in to comment.