-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLR-17548: Switch all public Java APIs from File to Path #2907
Changes from 2 commits
1ee430d
ac5f63e
58d52b7
45b2712
f851b1f
e7f9be1
5035793
562263d
1c1a315
4e43fed
b4937aa
02201b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -294,6 +294,7 @@ public void testDoFilesMode() throws IOException { | |
postTool.recursive = 0; | ||
postTool.dryRun = true; | ||
postTool.solrUpdateUrl = URI.create("http://localhost:8983/solr/fake/update"); | ||
// TODO SOLR-8282 move to PATH | ||
File dir = getFile("exampledocs").toFile(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we just do a toString, maybe we can simplify this line??? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. matbe change postFiles to take in a list of paths? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Feels out of scope for now but agreed maybe we can simplify here. Unless you feel strongly about it, will add a TODO and I can do on a separate PR. |
||
int num = postTool.postFiles(new String[] {dir.toString()}, 0, null, null); | ||
assertEquals(2, num); | ||
|
@@ -316,6 +317,7 @@ public void testRecursionAppliesToFilesMode() throws IOException { | |
postTool.recursive = 1; // This is the default | ||
postTool.dryRun = true; | ||
postTool.solrUpdateUrl = URI.create("http://localhost:8983/solr/fake/update"); | ||
// TODO SOLR-8282 move to PATH | ||
File dir = getFile("exampledocs").toFile(); | ||
int num = postTool.postFiles(new String[] {dir.toString()}, 0, null, null); | ||
assertEquals(2, num); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!