This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push: new 5fba2ddb9 Whitespace 5fba2ddb9 is described below commit 5fba2ddb92a1462b89349eceb3eebfe942ea1b3c Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Apr 3 15:53:22 2024 -0400 Whitespace --- .../org/apache/commons/compress/osgi/AbstractOsgiITest.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/apache/commons/compress/osgi/AbstractOsgiITest.java b/src/test/java/org/apache/commons/compress/osgi/AbstractOsgiITest.java index 2072aa29e..fd384f00a 100644 --- a/src/test/java/org/apache/commons/compress/osgi/AbstractOsgiITest.java +++ b/src/test/java/org/apache/commons/compress/osgi/AbstractOsgiITest.java @@ -30,20 +30,21 @@ import org.ops4j.pax.exam.Option; import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; - - /** * Tests if the library can be loaded with an OSGi environment provided by {@link #config()}. */ abstract class AbstractOsgiITest { + private static final String EXPECTED_BUNDLE_NAME = "org.apache.commons.commons-compress"; @Inject private BundleContext ctx; /** - * @return the OSGi configuration to use for the test - * @implNote Concrete implementation needs the @Configuration annotation + * Gets the OSGi configuration to use for the test. + * + * @return the OSGi configuration to use for the test. + * @implNote Concrete implementation needs the @Configuration annotation. */ public abstract Option[] config(); @@ -65,10 +66,8 @@ abstract class AbstractOsgiITest { public void testProperlyDetectsRunningInsideOsgiEnv() throws Exception { final Class<?> osgiUtils = loadBundle().loadClass("org.apache.commons.compress.utils.OsgiUtils"); assertNotNull("Can load OsgiUtils via bundle", osgiUtils); - final Method method = osgiUtils.getMethod("isRunningInOsgiEnvironment"); assertNotNull("Can access isRunningInOsgiEnvironment method", method); - assertTrue("Compress detects OSGi environment", (Boolean) method.invoke(null)); } }