Remove JUnit 4 usage from repository - #50442
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 5 pipeline(s). 31 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Alan Zimmer (alzimmermsft)
marked this pull request as ready for review
September 15, 2026 11:15
Alan Zimmer (alzimmermsft)
requested review from
a team,
Arthur Ma (ArthurMa1978),
Eldert Grootenboer (EldertGrootenboer),
Jonathan Giles (JonathanGiles),
Xiaofei Cao (XiaofeiCao),
Vinay Gera (g2vinay),
Haoling Dong (haolingdong-msft),
Johnathan W (j7nw4r),
Moary Chen (moarychan),
Xiaolu Dai (saragluna),
Srini Karri (skarri-microsoft) and
Weidong Xu (weidongxu-microsoft)
as code owners
September 15, 2026 11:15
Alan Zimmer (alzimmermsft)
requested review from
a team,
Josue Gomez (SwayGom),
Ashish Chhabria (axisc),
David Watrous (dpwatrous),
Eric Lam (MSFT) (hmlam),
iwang2,
Kiran Kumar Kolli (kirankumarkolli),
Victor Li (lilinvictorms),
Sagar Patel (sagar0207),
SJ (sjkwak),
Sanjana Kapur (skapur12),
vcolin7,
vinaysurya,
wiboris and
Xing Wu (xingwu1)
as code owners
September 15, 2026 11:15
Copilot started reviewing on behalf of
Alan Zimmer (alzimmermsft)
September 15, 2026 11:16
View session
|
Azure Pipelines: Successfully started running 5 pipeline(s). 31 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
One or more issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Migrates repository tests from JUnit 4 to JUnit 5 across legacy Azure SDK modules and updates related dependencies and fixtures.
Changes:
- Replaces JUnit 4 annotations, assertions, assumptions, and expected-exception handling.
- Updates Maven dependencies and test documentation.
- Adds a JUnit 5 archetype fixture.
File summaries
| File | Description |
|---|---|
| sdk/tools/azure-sdk-archetype/src/test/resources/projects/junit5/goal.txt | Updated as part of this pull request. |
| sdk/tools/azure-sdk-archetype/src/test/resources/projects/junit5/archetype.properties | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/TopicSendReceiveTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/TestUtils.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/TestBase.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/SubscriptionClientTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/SessionTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/SendReceiveTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/security/AadTokenProviderTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/QueueSessionTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/QueueSendReceiveTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/ProxySelectorTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/primitives/UtilsTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/primitives/ConnectionStringBuilderTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/MessageBodyTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/management/ManagementClientProxyTest.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/ClientValidationTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/ClientTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/java/com/microsoft/azure/servicebus/ClientSessionTests.java | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/src/test/HowToRunTests.txt | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/README.md | Updated as part of this pull request. |
| sdk/servicebus/microsoft-azure-servicebus/pom.xml | Updated as part of this pull request. |
| sdk/resourcemanager/azure-resourcemanager/src/test/java/com/azure/resourcemanager/TestBatch.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/WebSocketsSendTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/WebSocketsReceiveTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/SetPrefetchCountTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/SasTokenSendTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/SasTokenReceiveTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/RequestResponseTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/ReceiveTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/ReceiverRuntimeMetricsTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/ReceiverIdentifierTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/ReceivePumpTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/ReceivePumpEventHubTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/ReceiveParallelManualTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/MsalTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/ManagedIdentityTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/EventDataBatchAPITest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/AdalTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/sendrecv/AadBase.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/proxy/ProxySendTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/proxy/ProxySendLargeMessageTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/proxy/ProxySelectorTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/proxy/ProxyReceiveTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/proxy/ProxyIntegrationTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/proxy/ProxyConfigurationTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/lib/SasTokenTestBase.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/lib/ApiTestBase.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/impl/WebSocketProxyConnectionHandlerTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/impl/SendTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/impl/EventDataOrderTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/exceptioncontracts/WebSocketsSendLargeMessageTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/exceptioncontracts/SendLargeMessageTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/exceptioncontracts/SecurityExceptionsTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/exceptioncontracts/RetryPolicyTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/exceptioncontracts/ReceiverEpochTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/exceptioncontracts/ReactorFaultTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/exceptioncontracts/MsgFactoryOpenCloseTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/exceptioncontracts/ClientEntityCreateTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/eventdata/InteropEventBodyTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/eventdata/InteropAmqpPropertiesTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/eventdata/EventDataTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/eventdata/EventDataBatchTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/eventdata/BackCompatTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/connstrbuilder/TransportTypeTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/connstrbuilder/ConnStrBuilderTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/concurrency/EventHubClientTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/src/test/java/com/microsoft/azure/eventhubs/concurrency/ConcurrentReceiversTest.java | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/README.md | Updated as part of this pull request. |
| sdk/eventhubs/microsoft-azure-eventhubs/pom.xml | Updated as part of this pull request. |
| sdk/e2e/src/test/java/com/azure/endtoend/identity/ManagedIdentityCredentialLiveTest.java | Updated as part of this pull request. |
| sdk/e2e/pom.xml | Updated as part of this pull request. |
| sdk/cosmos/azure-cosmos-kafka-connect/src/test/java/com/azure/cosmos/kafka/connect/implementation/sink/idStrategy/TemplateStrategyTest.java | Updated as part of this pull request. |
| sdk/batch/microsoft-azure-batch/src/test/java/com/microsoft/azure/batch/TaskTests.java | Updated as part of this pull request. |
| sdk/batch/microsoft-azure-batch/src/test/java/com/microsoft/azure/batch/JobTests.java | Updated as part of this pull request. |
| sdk/batch/microsoft-azure-batch/src/test/java/com/microsoft/azure/batch/JobScheduleTests.java | Updated as part of this pull request. |
| sdk/batch/microsoft-azure-batch/src/test/java/com/microsoft/azure/batch/FileTests.java | Updated as part of this pull request. |
| sdk/batch/microsoft-azure-batch/src/test/java/com/microsoft/azure/batch/BatchIntegrationTestBase.java | Updated as part of this pull request. |
| sdk/batch/microsoft-azure-batch/pom.xml | Updated as part of this pull request. |
| eng/versioning/external_dependencies.txt | Updated as part of this pull request. |
Review details
- Files reviewed: 84/84 changed files
- Comments generated: 4
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Alan Zimmer (alzimmermsft)
requested review from
a team,
Mike Harder (mikeharder) and
Ray Chen (raych1)
as code owners
September 15, 2026 17:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Removes usage of JUnit 4 from the repository.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines