use of com.google.devtools.build.lib.skyframe.WorkspaceFileFunctionTest.FakeFileValue in project bazel by bazelbuild.
the class WorkspaceASTFunctionTest method setUp.
@Before
public final void setUp() throws Exception {
ConfiguredRuleClassProvider ruleClassProvider = TestRuleClassProvider.getRuleClassProvider();
ConfiguredRuleClassProvider ruleClassProviderSpy = Mockito.spy(ruleClassProvider);
// Prevent returning default workspace file.
Mockito.when(ruleClassProviderSpy.getDefaultWorkspacePrefix()).thenReturn("");
Mockito.when(ruleClassProviderSpy.getDefaultWorkspaceSuffix()).thenReturn("");
astSkyFunc = new WorkspaceASTFunction(ruleClassProviderSpy);
fakeWorkspaceFileValue = new FakeFileValue();
}
Aggregations