Skip to content

Run the combined service test of ServiceRegistryTest - #578

Open
sharanggupta wants to merge 1 commit into
apache:masterfrom
sharanggupta:ServiceRegistryTest-combined-service
Open

sharanggupta wants to merge 1 commit into
apache:masterfrom
sharanggupta:ServiceRegistryTest-combined-service

Conversation

@sharanggupta

Copy link
Copy Markdown
Contributor

ServiceRegistryTest.testRegisterCombinedService() is the only test method of the class without @Test. Under JUnit 3 it ran because its name starts with test, but JUnit 5 never runs it. It checks that a service that implements ListenerHook, FindHook and EventHook is registered as each of the three hooks and removed from all of them on unregistration.

This PR adds @Test and names the method registerCombinedService(), like the other tests of the class. The test passes: ServiceRegistryTest now runs 38 tests instead of 37.

testRegisterCombinedService() had no @test annotation, so JUnit 5 never
ran it. Annotate it and name it like the other tests of the class. It
passes.
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