Search in sources :

Example 1 with FakeFileValue

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();
}
Also used : ConfiguredRuleClassProvider(com.google.devtools.build.lib.analysis.ConfiguredRuleClassProvider) FakeFileValue(com.google.devtools.build.lib.skyframe.WorkspaceFileFunctionTest.FakeFileValue) Before(org.junit.Before)

Aggregations

ConfiguredRuleClassProvider (com.google.devtools.build.lib.analysis.ConfiguredRuleClassProvider)1 FakeFileValue (com.google.devtools.build.lib.skyframe.WorkspaceFileFunctionTest.FakeFileValue)1 Before (org.junit.Before)1