Repository: hadoop Updated Branches: refs/heads/HDFS-7240 154530a08 -> 8dbd0354c
http://git-wip-us.apache.org/repos/asf/hadoop/blob/8dbd0354/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestKeys.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestKeys.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestKeys.java index 81a89a7..97f11a9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestKeys.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestKeys.java @@ -110,7 +110,7 @@ public class TestKeys { } /** - * shutdown MiniDFSCluster + * shutdown MiniDFSCluster. */ @AfterClass public static void shutdown() { @@ -120,7 +120,7 @@ public class TestKeys { } /** - * Creates a file with Random Data + * Creates a file with Random Data. * * @return File. */ @@ -165,9 +165,9 @@ public class TestKeys { private final String dir; private final String keyName; - OzoneVolume vol; - OzoneBucket bucket; - File file; + private OzoneVolume vol; + private OzoneBucket bucket; + private File file; PutHelper(OzoneRestClient client, String dir) { this(client, dir, OzoneUtils.getRequestID().toLowerCase()); http://git-wip-us.apache.org/repos/asf/hadoop/blob/8dbd0354/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestVolume.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestVolume.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestVolume.java index 9c28f08..6987651 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestVolume.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/web/client/TestVolume.java @@ -90,7 +90,7 @@ public class TestVolume { } /** - * shutdown MiniDFSCluster + * shutdown MiniDFSCluster. */ @AfterClass public static void shutdown() { @@ -255,10 +255,10 @@ public class TestVolume { final int step = 10; client.setUserAuth(OzoneConsts.OZONE_SIMPLE_HDFS_USER); for (int x = 0; x < volCount; x++) { - String userName = "frodo" + - RandomStringUtils.randomAlphabetic(5).toLowerCase(); - String volumeName = "vol" + - RandomStringUtils.randomAlphabetic(5).toLowerCase(); + String userName = + "frodo" + RandomStringUtils.randomAlphabetic(5).toLowerCase(); + String volumeName = + "vol" + RandomStringUtils.randomAlphabetic(5).toLowerCase(); OzoneVolume vol = client.createVolume(volumeName, userName, "100TB"); assertNotNull(vol); } @@ -266,17 +266,16 @@ public class TestVolume { int count = 0; int pagecount = 0; while (count < volCount) { - List<OzoneVolume> ovols = client.listAllVolumes(null, step, - prevKey); + List<OzoneVolume> ovols = client.listAllVolumes(null, step, prevKey); count += ovols.size(); - if(ovols.size() > 0) { + if (ovols.size() > 0) { prevKey = ovols.get(ovols.size() - 1); } pagecount++; } // becasue we are querying an existing ozone store, there will // be volumes created by other tests too. So we should get more page counts. - Assert.assertEquals(volCount / step , pagecount); + Assert.assertEquals(volCount / step, pagecount); } @Test --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org