Skip to content

Commit

Permalink
fix unit test for isInDateFolder
Browse files Browse the repository at this point in the history
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: James Herr <[email protected]>
Co-authored-by: Sylvie <[email protected]>
  • Loading branch information
4 people committed Jan 15, 2025
1 parent 4cbb330 commit c224994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public static String createDateBasedPath(LocalDate date, String originalName) {
}

public static boolean isInDateFolder(String testType, String blobPath, LocalDate creationDate) {
// /GOLDEN_COPY/2021/09/01/
// /ASSERTION/2021/09/01/
String expectedPath = buildDatePathPrefix(creationDate) + testType;
return blobPath.startsWith(expectedPath);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ class AzureBlobHelperTest extends Specification {
given:
def date = LocalDate.of(2024, 3, 15)
def path = "2024/03/15/test.hl7"
def testType = "Assertion/"

expect:
AzureBlobHelper.isInDateFolder(path, date)
AzureBlobHelper.isInDateFolder(testType, path, date)
}
}

0 comments on commit c224994

Please sign in to comment.