Skip to content

Commit d849d30

Browse files
new path syntax in tests
1 parent ae82083 commit d849d30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/java/com/bazel_diff/TargetHashingClientImplTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void hashAllBazelTargets_ruleTargets() throws IOException {
6666
@Test
6767
public void hashAllBazelTargets_ruleTargets_seedFilepaths() throws IOException {
6868
Set<Path> seedFilepaths = new HashSet<>();
69-
seedFilepaths.add(Path.of("somefile.txt"));
69+
seedFilepaths.add(Paths.get("somefile.txt"));
7070
when(filesClientMock.readFile(anyObject())).thenReturn("somecontent".getBytes());
7171
when(bazelClientMock.queryAllTargets()).thenReturn(defaultTargets);
7272
TargetHashingClientImpl client = new TargetHashingClientImpl(bazelClientMock, filesClientMock);
@@ -141,7 +141,7 @@ public void hashAllBazelTargets_sourceTargets_modifiedSources() throws IOExcepti
141141
@Test
142142
public void hashAllBazelTargets_sourceTargets_modifiedSources_seedFilepaths() throws IOException, NoSuchAlgorithmException {
143143
Set<Path> seedFilepaths = new HashSet<>();
144-
seedFilepaths.add(Path.of("somefile.txt"));
144+
seedFilepaths.add(Paths.get("somefile.txt"));
145145
when(filesClientMock.readFile(anyObject())).thenReturn("somecontent".getBytes());
146146
createSourceTarget("sourceFile1");
147147
defaultTargets.add(createSourceTarget("sourceFile1"));

0 commit comments

Comments
 (0)