From a8c3277ebac9d2158ad87a18ec2ec1873fd855a2 Mon Sep 17 00:00:00 2001 From: houjinchuan Date: Mon, 22 Jan 2024 17:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=B8=AD=E8=8E=B7=E5=8F=96=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84=E7=9A=84=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/com/zdjizhi/FileChunkCombinerTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/zdjizhi/FileChunkCombinerTests.java b/src/test/java/com/zdjizhi/FileChunkCombinerTests.java index a5b0652..67fab1e 100644 --- a/src/test/java/com/zdjizhi/FileChunkCombinerTests.java +++ b/src/test/java/com/zdjizhi/FileChunkCombinerTests.java @@ -83,7 +83,8 @@ public class FileChunkCombinerTests { @Before public void testBefore() throws Exception { - ParameterTool parameterTool = ParameterTool.fromPropertiesFile("C:\\Users\\root\\Documents\\file-chunk-combiner\\src\\main\\resources\\common.properties"); + String path = FileChunkCombinerTests.class.getClassLoader().getResource("common.properties").getPath(); + ParameterTool parameterTool = ParameterTool.fromPropertiesFile(path); configuration = parameterTool.getConfiguration(); duplicateChunkCounter = new SimpleCounter(); combineErrorCounter = new SimpleCounter();