Skip to content

Commit

Permalink
Merge pull request #116 from sul-dlss/abolish-underscores
Browse files Browse the repository at this point in the history
it's crawl-start, not crawl_start
  • Loading branch information
jmartin-sul committed Jun 21, 2017
2 parents f29d73c + 8cff359 commit 414ffe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/edu/stanford/dlss/was/WasapiFile.java
Expand Up @@ -27,7 +27,7 @@ public class WasapiFile {
private String crawlStartDateStr;

@JsonProperty("crawl-time")
/** Time the original content of the file was crawled */
/** Time the original content of the file was crawled (when the warc was created/opened) */
private String fileCrawlDateStr;

private String filename;
Expand Down Expand Up @@ -126,7 +126,7 @@ public String toString() {
sb.append("account: " + Integer.toString(getAccountId()) + "\n");
sb.append("collection: " + Integer.toString(getCollectionId()) + "\n");
sb.append("crawl: " + Integer.toString(getCrawlId()) + "\n");
sb.append("crawl_start: " + getCrawlStartDateStr() + "\n");
sb.append("crawl-start: " + getCrawlStartDateStr() + "\n");
sb.append("crawl-time: " + getFileCrawlDateStr() + "\n");
return sb.toString();
}
Expand Down
2 changes: 1 addition & 1 deletion test/edu/stanford/dlss/was/TestWasapiFile.java
Expand Up @@ -30,7 +30,7 @@ public void toStringImplemented() throws IOException {
assertThat(fileAsString, containsString("account: 925"));
assertThat(fileAsString, containsString("collection: 5425"));
assertThat(fileAsString, containsString("crawl: 299019"));
assertThat(fileAsString, containsString("crawl_start: 2017-05-04T22:58:04Z"));
assertThat(fileAsString, containsString("crawl-start: 2017-05-04T22:58:04Z"));
assertThat(fileAsString, containsString("crawl-time: 2014-09-22T23:53:12Z"));
}
}

0 comments on commit 414ffe2

Please sign in to comment.