You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/04/03 15:32:07 UTC
(commons-compress) 02/02: Format
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
commit ce82e6fb1f0cbb43828aaa32a9a10dcb0ac55e06
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Apr 3 11:31:58 2024 -0400
Format
---
.../java/org/apache/commons/compress/osgi/Configurations.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/compress/osgi/Configurations.java b/src/test/java/org/apache/commons/compress/osgi/Configurations.java
index 95c6edb8d..a31bd2f80 100644
--- a/src/test/java/org/apache/commons/compress/osgi/Configurations.java
+++ b/src/test/java/org/apache/commons/compress/osgi/Configurations.java
@@ -48,15 +48,18 @@ final class Configurations {
public static Option[] getConfigWithoutOptionals() {
final Option[] defaultConfig = getDefaultConfig();
+ // @formatter:off
final Option[] result = Arrays.stream(defaultConfig)
.filter(o -> !getCommonsCodec().equals(o))
.filter(o -> !getCommonsIO().equals(o))
.toArray(Option[]::new);
+ // @formatter:on
Assertions.assertTrue(result.length < defaultConfig.length, "Expected to have removed options.");
return result;
}
public static Option[] getDefaultConfig() {
+ // @formatter:off
return new Option[]{systemProperty("pax.exam.osgi.unresolved.fail").value("true"),
systemProperty("org.ops4j.pax.url.mvn.useFallbackRepositories").value("false"),
systemProperty("org.ops4j.pax.url.mvn.repositories").value("https://repo.maven.apache.org/maven2"),
@@ -64,13 +67,15 @@ final class Configurations {
mavenBundle().groupId("org.apache.felix").artifactId("org.apache.felix.configadmin").version("1.8.16"),
getCommonsCodec(),
getCommonsIO(),
- composite(systemProperty("pax.exam.invoker").value("junit"), bundle("link:classpath:META-INF/links/org.ops4j.pax.tipi.junit.link"),
+ composite(systemProperty("pax.exam.invoker").value("junit"),
+ bundle("link:classpath:META-INF/links/org.ops4j.pax.tipi.junit.link"),
bundle("link:classpath:META-INF/links/org.ops4j.pax.exam.invoker.junit.link"),
mavenBundle().groupId("org.apache.servicemix.bundles").artifactId("org.apache.servicemix.bundles.hamcrest").version("1.3_1")),
bundle("reference:file:target/classes/").start()};
+ // @formatter:on
}
private Configurations() {
-
+ // noop
}
}