use of com.android.tools.idea.gradle.dsl.model.dependencies.ArtifactDependencySpec in project android by JetBrains.
the class GradleBuildModelFixture method requireDependency.
public void requireDependency(@NotNull String configurationName, @NotNull ArtifactDependencySpec expected) {
DependenciesModel dependenciesModel = myTarget.dependencies();
for (ArtifactDependencyModel dependency : dependenciesModel.artifacts()) {
ArtifactDependencySpec actual = ArtifactDependencySpec.create(dependency);
if (configurationName.equals(dependency.configurationName()) && expected.equals(actual)) {
return;
}
}
fail("Failed to find dependency '" + expected.compactNotation() + "'");
}
Aggregations