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 2020/05/19 20:42:56 UTC
[commons-cli] branch master updated: Move test fixture to a
component specific folder.
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-cli.git
The following commit(s) were added to refs/heads/master by this push:
new 24adba8 Move test fixture to a component specific folder.
24adba8 is described below
commit 24adba8713785abcc3cbcf40a229432d53b4b521
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue May 19 16:42:52 2020 -0400
Move test fixture to a component specific folder.
---
src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java | 2 +-
src/test/java/org/apache/commons/cli/TypeHandlerTest.java | 2 +-
src/test/resources/{ => org/apache/commons/cli}/existing-readable.file | 0
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java b/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
index 5bbb6da..04b15c6 100644
--- a/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
+++ b/src/test/java/org/apache/commons/cli/PatternOptionBuilderTest.java
@@ -163,7 +163,7 @@ public class PatternOptionBuilderTest
{
final Options options = PatternOptionBuilder.parsePattern("g<");
final CommandLineParser parser = new PosixParser();
- final CommandLine line = parser.parse(options, new String[] { "-g", "src/test/resources/existing-readable.file" });
+ final CommandLine line = parser.parse(options, new String[] { "-g", "src/test/resources/org/apache/commons/cli/existing-readable.file" });
final Object parsedReadableFileStream = line.getOptionObject("g");
diff --git a/src/test/java/org/apache/commons/cli/TypeHandlerTest.java b/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
index 391abc8..c7c9cb9 100644
--- a/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
+++ b/src/test/java/org/apache/commons/cli/TypeHandlerTest.java
@@ -114,7 +114,7 @@ public class TypeHandlerTest
public void testCreateValueExistingFile()
throws Exception
{
- FileInputStream result = TypeHandler.createValue("src/test/resources/existing-readable.file", PatternOptionBuilder.EXISTING_FILE_VALUE);
+ FileInputStream result = TypeHandler.createValue("src/test/resources/org/apache/commons/cli/existing-readable.file", PatternOptionBuilder.EXISTING_FILE_VALUE);
assertNotNull(result);
}
diff --git a/src/test/resources/existing-readable.file b/src/test/resources/org/apache/commons/cli/existing-readable.file
similarity index 100%
rename from src/test/resources/existing-readable.file
rename to src/test/resources/org/apache/commons/cli/existing-readable.file