Skip to content

Commit 56a538f

Browse files
slfan1989cnaurothzhtttylz
authored
HADOOP-19617 - [JDK17] Remove JUnit4 Dependency - HuaWeiCloud. (#7871)
* HADOOP-19617 - [JDK17] Remove JUnit4 Dependency - HuaWeiCloud. Co-authored-by: Chris Nauroth <[email protected]> Co-authored-by: Hualong Zhang <[email protected]> Reviewed-by: Chris Nauroth <[email protected]> Reviewed-by: Hualong Zhang <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
1 parent 53e0258 commit 56a538f

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

hadoop-cloud-storage-project/hadoop-huaweicloud/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,6 @@
116116
<scope>test</scope>
117117
<type>test-jar</type>
118118
</dependency>
119-
<dependency>
120-
<groupId>junit</groupId>
121-
<artifactId>junit</artifactId>
122-
<version>${junit.version}</version>
123-
<scope>test</scope>
124-
</dependency>
125119
<dependency>
126120
<groupId>org.mockito</groupId>
127121
<artifactId>mockito-all</artifactId>

hadoop-cloud-storage-project/hadoop-huaweicloud/src/test/java/org/apache/hadoop/fs/obs/TestOBSContractCreate.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
import org.apache.hadoop.conf.Configuration;
2222
import org.apache.hadoop.fs.contract.AbstractContractCreateTest;
2323
import org.apache.hadoop.fs.contract.AbstractFSContract;
24-
import org.junit.Assume;
24+
25+
import org.junit.jupiter.api.Disabled;
2526

2627
/**
2728
* Create test cases on obs file system.
@@ -33,13 +34,13 @@ protected AbstractFSContract createContract(final Configuration conf) {
3334
return new OBSContract(conf);
3435
}
3536

37+
@Disabled
3638
@Override
3739
public void testCreatedFileIsImmediatelyVisible() {
38-
Assume.assumeTrue("unsupport.", false);
3940
}
4041

42+
@Disabled
4143
@Override
4244
public void testCreatedFileIsVisibleOnFlush() {
43-
Assume.assumeTrue("unsupport", false);
4445
}
4546
}

hadoop-cloud-storage-project/hadoop-huaweicloud/src/test/java/org/apache/hadoop/fs/obs/TestOBSContractRename.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.hadoop.conf.Configuration;
2222
import org.apache.hadoop.fs.contract.AbstractContractRenameTest;
2323
import org.apache.hadoop.fs.contract.AbstractFSContract;
24-
import org.junit.Assume;
24+
import org.junit.jupiter.api.Disabled;
2525

2626
/**
2727
* Rename test cases on obs file system.
@@ -33,13 +33,13 @@ protected AbstractFSContract createContract(final Configuration conf) {
3333
return new OBSContract(conf);
3434
}
3535

36+
@Disabled
3637
@Override
3738
public void testRenameFileUnderFileSubdir() {
38-
Assume.assumeTrue("unsupport.", false);
3939
}
4040

41+
@Disabled
4142
@Override
4243
public void testRenameFileUnderFile() {
43-
Assume.assumeTrue("unsupport.", false);
4444
}
4545
}

0 commit comments

Comments
 (0)