You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/07/26 07:42:33 UTC
[incubator-linkis] branch dev-1.2.1 updated: update testUpdateVersion method (#2528)
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.2.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.2.1 by this push:
new eff9d2217 update testUpdateVersion method (#2528)
eff9d2217 is described below
commit eff9d221748e1749048ae90f350921c04b6e3df6
Author: 成彬彬 <10...@users.noreply.github.com>
AuthorDate: Tue Jul 26 15:42:27 2022 +0800
update testUpdateVersion method (#2528)
* update testUpdateVersion method
* update testUpdateVersion method
---
.../java/org/apache/linkis/bml/common/VersionServiceImplTest.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/linkis-public-enhancements/linkis-bml/linkis-bml-server/src/test/java/org/apache/linkis/bml/common/VersionServiceImplTest.java b/linkis-public-enhancements/linkis-bml/linkis-bml-server/src/test/java/org/apache/linkis/bml/common/VersionServiceImplTest.java
index 51937dcdf..cd2a0f245 100644
--- a/linkis-public-enhancements/linkis-bml/linkis-bml-server/src/test/java/org/apache/linkis/bml/common/VersionServiceImplTest.java
+++ b/linkis-public-enhancements/linkis-bml/linkis-bml-server/src/test/java/org/apache/linkis/bml/common/VersionServiceImplTest.java
@@ -20,7 +20,6 @@ package org.apache.linkis.bml.common;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
-import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
@@ -38,9 +37,7 @@ public class VersionServiceImplTest {
ResourceHelper hdfsResourceHelper = new HdfsResourceHelper();
String newPath =
hdfsResourceHelper.generatePath(
- "linkis",
- path.substring(path.lastIndexOf(File.separator) + 1),
- new HashMap<>());
+ "linkis", path.substring(path.lastIndexOf("/") + 1), new HashMap<>());
assertEquals(
newPath,
"hdfs:///apps-data/linkis/bml/"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org