use of com.facebook.buck.rules.TargetGraphAndTargets in project buck by facebook.
the class ProjectCommandIntellijTest method testCreateTargetGraphForSliceWithTests.
@Test
public void testCreateTargetGraphForSliceWithTests() {
TargetGraphAndTargets targetGraphAndTargets = ProjectCommandTests.createTargetGraph(targetGraph, ProjectCommand.Ide.INTELLIJ, ImmutableSet.of(fooProjectNode.getBuildTarget()), /* withTests = */
true, /* withDependenciesTests = */
true);
assertEquals(ImmutableSortedSet.<TargetNode<?, ?>>of(dummyRootBinNode, dummyProjectNode, fooProjectNode, fooBinNode, fooLibNode, fooBinTestNode, fooTestNode, barLibNode, bazProjectNode, bazLibNode), ImmutableSortedSet.copyOf(targetGraphAndTargets.getTargetGraph().getNodes()));
}
use of com.facebook.buck.rules.TargetGraphAndTargets in project buck by facebook.
the class ProjectCommandIntellijTest method testCreateTargetGraphForSmallSliceWithTests.
@Test
public void testCreateTargetGraphForSmallSliceWithTests() {
TargetGraphAndTargets targetGraphAndTargets = ProjectCommandTests.createTargetGraph(targetGraph, ProjectCommand.Ide.INTELLIJ, ImmutableSet.of(bazProjectNode.getBuildTarget()), /* withTests = */
true, /* withDependenciesTests = */
true);
assertEquals(ImmutableSortedSet.of(dummyRootBinNode, dummyProjectNode, bazProjectNode, bazLibNode, bazTestNode), ImmutableSortedSet.copyOf(targetGraphAndTargets.getTargetGraph().getNodes()));
}
use of com.facebook.buck.rules.TargetGraphAndTargets in project buck by facebook.
the class ProjectCommandIntellijTest method testCreateTargetGraphForSliceWithoutTests.
@Test
public void testCreateTargetGraphForSliceWithoutTests() {
TargetGraphAndTargets targetGraphAndTargets = ProjectCommandTests.createTargetGraph(targetGraph, ProjectCommand.Ide.INTELLIJ, ImmutableSet.of(fooProjectNode.getBuildTarget()), /* withTests = */
false, /* withDependenciesTests = */
false);
assertEquals(ImmutableSortedSet.<TargetNode<?, ?>>of(dummyRootBinNode, dummyProjectNode, fooProjectNode, fooBinNode, fooLibNode, barLibNode), ImmutableSortedSet.copyOf(targetGraphAndTargets.getTargetGraph().getNodes()));
}
use of com.facebook.buck.rules.TargetGraphAndTargets in project buck by facebook.
the class ProjectCommandXcodeTest method testCreateTargetGraphWithTests.
@Test
public void testCreateTargetGraphWithTests() {
TargetGraphAndTargets targetGraphAndTargets = ProjectCommandTests.createTargetGraph(targetGraph, ProjectCommand.Ide.XCODE, ImmutableSet.of(), /* withTests = */
true, /* withDependenciesTests */
true);
assertEquals(ImmutableSortedSet.<TargetNode<?, ?>>of(workspaceNode, fooBinNode, fooBinBinaryNode, fooLibNode, fooBinTestNode, fooTestNode, barLibNode, smallWorkspaceNode, bazLibNode, bazTestNode, workspaceExtraTestNode), ImmutableSortedSet.copyOf(targetGraphAndTargets.getTargetGraph().getNodes()));
}
Aggregations