diff options
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java b/src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java index ef482198a7..a8ecc550b4 100644 --- a/src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java +++ b/src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java @@ -58,7 +58,7 @@ import org.mockito.Mockito; public class ExperimentalStateTrackerTest extends FoundationTestCase { private Action mockAction(String progressMessage, String primaryOutput) { - Path path = outputBase.getRelative(new PathFragment(primaryOutput)); + Path path = outputBase.getRelative(PathFragment.create(primaryOutput)); Artifact artifact = new Artifact(path, Root.asSourceRoot(path)); Action action = Mockito.mock(Action.class); @@ -424,7 +424,7 @@ public class ExperimentalStateTrackerTest extends FoundationTestCase { String primaryOutput = "some/path/to/a/file"; ManualClock clock = new ManualClock(); - Path path = outputBase.getRelative(new PathFragment(primaryOutput)); + Path path = outputBase.getRelative(PathFragment.create(primaryOutput)); Artifact artifact = new Artifact(path, Root.asSourceRoot(path)); ActionExecutionMetadata actionMetadata = Mockito.mock(ActionExecutionMetadata.class); when(actionMetadata.getOwner()).thenReturn(Mockito.mock(ActionOwner.class)); |