> +import org.testng.Assert;
> +import org.testng.annotations.Test;
> +
> +@Test(testName = "MultipartNamingStrategyTest")
> +public class MultipartNamingStrategyTest {
> +
> + @Test
> + public void testGetPartNameFirstOneHundret() {
> + final MultipartNamingStrategy strategy = new
> MultipartNamingStrategy();
> + final String key = "file.txt";
> + final int numberParts = 100;
> +
> + // check the first 100
> + for (int i = 0; i < numberParts; i++) {
> + String partName = strategy.getPartName(key, i + 1, numberParts);
> + Assert.assertEquals(String.format("file.txt/%03d", i + 1),
> partName);
[minor] Here and below, static import `assertEquals`? Also, should be
`assertEquals(partName, ...)` (i.e. "actual, expected").
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/427/files#r14410828