You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2021/02/19 13:25:39 UTC
[jackrabbit-filevault] branch master updated: JCRVLT-500 - remove
workaround from the test (#123)
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
The following commit(s) were added to refs/heads/master by this push:
new 0f051eb JCRVLT-500 - remove workaround from the test (#123)
0f051eb is described below
commit 0f051eb786846fc15210d08fabcbdbc315f60bc8
Author: Timothee Maret <tm...@apache.org>
AuthorDate: Fri Feb 19 14:25:29 2021 +0100
JCRVLT-500 - remove workaround from the test (#123)
---
.../packaging/integration/TestExportWithQuotedPattern.java | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/integration/TestExportWithQuotedPattern.java b/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/integration/TestExportWithQuotedPattern.java
index 74ba4ce..9d54c59 100644
--- a/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/integration/TestExportWithQuotedPattern.java
+++ b/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/integration/TestExportWithQuotedPattern.java
@@ -56,7 +56,7 @@ public class TestExportWithQuotedPattern extends IntegrationTestBase {
String path = "/tmp/" + NAME;
PathFilterSet nodes = new PathFilterSet(path);
- nodes.addInclude(new DefaultPathFilter(quote(path)));
+ nodes.addInclude(new DefaultPathFilter(Pattern.quote(path)));
DefaultWorkspaceFilter filter = new DefaultWorkspaceFilter();
filter.add(nodes);
@@ -76,16 +76,6 @@ public class TestExportWithQuotedPattern extends IntegrationTestBase {
}
}
- private String quote(String path) {
- if (path == null) {
- return null;
- } else if (path.startsWith("/")) {
- return "/" + Pattern.quote(path.substring(1));
- } else {
- return Pattern.quote(path);
- }
- }
-
private File assemblePackage(WorkspaceFilter filter)
throws IOException, RepositoryException {