From 37961fd6b056dac7aaf6bb3dee680b17567c666b Mon Sep 17 00:00:00 2001 From: Sharang Gupta Date: Thu, 15 Oct 2026 20:07:32 +0100 Subject: [PATCH] Run the combined service test of ServiceRegistryTest 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. --- .../java/org/apache/felix/framework/ServiceRegistryTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/src/test/java/org/apache/felix/framework/ServiceRegistryTest.java b/framework/src/test/java/org/apache/felix/framework/ServiceRegistryTest.java index c4875ce542..16fdb57f20 100644 --- a/framework/src/test/java/org/apache/felix/framework/ServiceRegistryTest.java +++ b/framework/src/test/java/org/apache/felix/framework/ServiceRegistryTest.java @@ -246,7 +246,8 @@ void registerListenerHookServiceFactory() assertThat(sr.getHookRegistry().getHooks(ListenerHook.class).size()).as("Should be no hooks left after unregistration").isEqualTo(0); } - public void testRegisterCombinedService() + @Test + void registerCombinedService() { Bundle b = mock(Bundle.class); BundleContext c = mock(BundleContext.class);