Skip to content

Test Cases & Java Compatibility issue fix#158

Merged
pallakartheekreddy merged 5 commits intoSunbird-Lern:release-8.1.0from
Sanketika-Bengaluru:release-8.0.0
Nov 10, 2025
Merged

Test Cases & Java Compatibility issue fix#158
pallakartheekreddy merged 5 commits intoSunbird-Lern:release-8.1.0from
Sanketika-Bengaluru:release-8.0.0

Conversation

@sntiwari1
Copy link
Collaborator

@sntiwari1 sntiwari1 commented Nov 10, 2025

No description provided.

Copilot AI and others added 5 commits November 9, 2025 17:16
Co-authored-by: chethann007 <210659053+chethann007@users.noreply.github.com>
Co-authored-by: chethann007 <210659053+chethann007@users.noreply.github.com>
…sues

Fix Maven build: resolve PowerMock Java 11 module system incompatibility
fix: resolve PowerMock Java 11 module system incompatibility
@korbit-ai
Copy link

korbit-ai bot commented Nov 10, 2025

Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment /korbit-review.

Your admin can change your review schedule in the Korbit Console

@sntiwari1 sntiwari1 marked this pull request as ready for review November 10, 2025 05:31
Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've completed my review and didn't find any issues... but I did find this frog.

           .--._.--.
          ( O     O )
          /   . .   \
         .`._______.'.
        /(           )\
      _/  \  \   /  /  \_
   .~   `  \  \ /  /  '   ~.
  {    -.   \  V  /   .-    }
_ _`.    \  |  |  |  /    .'_ _
>_       _} |  |  | {_       _<
 /. - ~ ,_-'  .^.  `-_, ~ - .\
         '-'|/   \|`-`

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@korbit-ai
Copy link

korbit-ai bot commented Nov 10, 2025

I was unable to write a description for this pull request. This could be because I only found files I can't scan.

@korbit-ai
Copy link

korbit-ai bot commented Nov 10, 2025

I was unable to write a description for this pull request. This could be because I only found files I can't scan.

@sonarqubecloud
Copy link

@pallakartheekreddy pallakartheekreddy merged commit d761ca0 into Sunbird-Lern:release-8.1.0 Nov 10, 2025
7 of 8 checks passed
@korbit-ai
Copy link

korbit-ai bot commented Nov 10, 2025

I was unable to write a description for this pull request. This could be because I only found files I can't scan.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR configures Java module system compatibility for testing with PowerMock and other reflection-based testing frameworks in a Java 11+ environment. The changes address module encapsulation restrictions by adding JVM --add-opens flags and fixing test configuration issues.

Key changes:

  • Added --add-opens JVM arguments to maven-surefire-plugin across multiple modules to expose internal Java packages for reflection-based testing
  • Removed hardcoded file path from test configuration and added exception stack trace logging for better debugging
  • Added test scope to PowerMock and JUnit dependencies and excluded problematic controller tests from the build

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
service/test/controllers/BaseControllerTest.java Removed invalid file path, added java.util.concurrent.* to PowerMockIgnore, and improved exception logging
service/pom.xml Added --add-opens JVM arguments for surefire plugin and excluded controller tests that fail during full build
notification-sdk/pom.xml Configured maven-surefire-plugin with --add-opens arguments for Java module system compatibility
all-actors/pom.xml Added test scope to test dependencies and configured maven-surefire-plugin with --add-opens arguments

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
Copy link

Copilot AI Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The surefire plugin version is hardcoded to 3.2.5 here, while service/pom.xml uses ${surefire.plugin.version} (3.0.0 from parent pom). Consider using the property variable for consistency: <version>${surefire.plugin.version}</version>

Suggested change
<version>3.2.5</version>
<version>${surefire.plugin.version}</version>

Copilot uses AI. Check for mistakes.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
Copy link

Copilot AI Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The surefire plugin version is hardcoded to 3.2.5 here, while the parent pom defines surefire.plugin.version as 3.0.0. Consider using the property variable for consistency: <version>${surefire.plugin.version}</version>

Suggested change
<version>3.2.5</version>
<version>${surefire.plugin.version}</version>

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants