commit e0c5774529fb2597e80690b5cc625e54a2eeb245 Author: iwakeh iwakeh@torproject.org Date: Fri Jul 28 07:53:28 2017 +0000
Avoid compiler warnings in test classes. --- .../descriptor/index/DescriptorIndexCollectorTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/test/java/org/torproject/descriptor/index/DescriptorIndexCollectorTest.java b/src/test/java/org/torproject/descriptor/index/DescriptorIndexCollectorTest.java index d7f602f..15ca5b5 100644 --- a/src/test/java/org/torproject/descriptor/index/DescriptorIndexCollectorTest.java +++ b/src/test/java/org/torproject/descriptor/index/DescriptorIndexCollectorTest.java @@ -43,7 +43,7 @@ public class DescriptorIndexCollectorTest { makeStructure(remoteDirectory, "2");
File indexFile = newIndexFile("testindex.json", - remoteDirectory.toURL().toString()); + remoteDirectory.toURI().toURL().toString());
// verify precondition for test. checkContains(true, @@ -54,7 +54,7 @@ public class DescriptorIndexCollectorTest { "a/b/y2","a/b/x2");
DescriptorCollector dc = new DescriptorIndexCollector(); - dc.collectDescriptors(indexFile.toURL().toString(), + dc.collectDescriptors(indexFile.toURI().toURL().toString(), new String[]{"a/b", "a"}, 1451606400_000L, localFolder, false);
// verify that files in 'a/b' were fetched @@ -146,7 +146,7 @@ public class DescriptorIndexCollectorTest { makeStructure(remoteDirectory, "2");
File indexFile = newIndexFile("testindexDelete.json", - remoteDirectory.toURL().toString()); + remoteDirectory.toURI().toURL().toString());
// verify precondition for test. checkContains(true, @@ -157,7 +157,7 @@ public class DescriptorIndexCollectorTest { "a/b/y2","a/b/x2");
new DescriptorIndexCollector() - .collectDescriptors(indexFile.toURL().toString(), + .collectDescriptors(indexFile.toURI().toURL().toString(), new String[]{"a/b/", "a/b/c"}, 1451606400_000L, localFolder, true);
// verify file addition, including that the non-synced dir is not touched. @@ -187,7 +187,7 @@ public class DescriptorIndexCollectorTest { makeStructure(remoteDirectory, "2");
File indexFile = newIndexFile("testindexDelete.json", - remoteDirectory.toURL().toString()); + remoteDirectory.toURI().toURL().toString());
// verify precondition for test. checkContains(true, @@ -198,7 +198,7 @@ public class DescriptorIndexCollectorTest { "a/b/y2","a/b/x2");
new DescriptorIndexCollector() - .collectDescriptors(indexFile.toURL().toString(), + .collectDescriptors(indexFile.toURI().toURL().toString(), new String[]{"/a/b", "/a/b/c/"}, 1451606400_000L, localFolder, true);
tor-commits@lists.torproject.org