Skip to content

Fix Java 11+ compatibility and add unit tests#1

Open
pineappleBest123 wants to merge 1 commit intoweb-servers:masterfrom
pineappleBest123:fix-java11-add-unit-tests
Open

Fix Java 11+ compatibility and add unit tests#1
pineappleBest123 wants to merge 1 commit intoweb-servers:masterfrom
pineappleBest123:fix-java11-add-unit-tests

Conversation

@pineappleBest123
Copy link
Copy Markdown

Summary

  • Remove sun.reflect.generics.reflectiveObjects.NotImplementedException
    (internal JDK API removed in Java 11) and replace with standard
    UnsupportedOperationException
  • Add JUnit 5 dependency and maven-surefire-plugin 3.2.5 to pom.xml
  • AbstractMemberProviderTest: 7 tests covering md5 initialization
    and getEnv() lookup behaviour
  • KubernetesMemberProviderTest: 13 tests covering init() timeout
    parsing and getMembers() filtering logic using a stub StreamProvider

Test plan

  • mvn test passes with 20 tests, 0 failures

  - Remove sun.reflect.generics.reflectiveObjects.NotImplementedException
    (internal JDK API removed in Java 11) and replace with standard
    UnsupportedOperationException
  - Add JUnit 5 dependency and maven-surefire-plugin 3.2.5 to pom.xml
  - AbstractMemberProviderTest: 7 tests covering md5 initialization
    and getEnv() lookup behaviour
  - KubernetesMemberProviderTest: 13 tests covering init() timeout
    parsing and getMembers() filtering logic using a stub StreamProvider
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.

1 participant