Skip to content

Commit 2d768f9

Browse files
author
fanshilun
committed
HDFS-11719. Fix Junit Test & CheckStyle.
1 parent e21088c commit 2d768f9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/BaseTestHttpFSWith.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,8 +1195,8 @@ private void testStoragePolicy() throws Exception {
11951195
"Storage policy returned from the DFS and HttpFS should be equals");
11961196
// unset policy
11971197
httpfs.unsetStoragePolicy(path);
1198-
assertEquals(defaultdfsPolicy, httpfs.getStoragePolicy(path),
1199-
"After unset storage policy, the get API shoudld return the default policy");
1198+
assertEquals(defaultdfsPolicy, httpfs.getStoragePolicy(path),
1199+
"After unset storage policy, the get API shoudld return the default policy");
12001200
fs.close();
12011201
}
12021202

@@ -1435,9 +1435,8 @@ private void testCreateSnapshot(String snapshotName) throws Exception {
14351435
"Should have exactly one snapshot.");
14361436
String resultingSnapName = snapshotItems[0].getPath().getName();
14371437
if (snapshotName == null) {
1438-
assertTrue(
1439-
Pattern.matches("(s)(\\d{8})(-)(\\d{6})(\\.)(\\d{3})",
1440-
resultingSnapName), "Snapshot auto generated name not matching pattern");
1438+
assertTrue(Pattern.matches("(s)(\\d{8})(-)(\\d{6})(\\.)(\\d{3})",
1439+
resultingSnapName), "Snapshot auto generated name not matching pattern");
14411440
} else {
14421441
assertTrue(snapshotName.equals(resultingSnapName),
14431442
"Snapshot name is not same as passed name.");

0 commit comments

Comments
 (0)