use of com.android.tools.idea.gradle.project.model.AndroidModelFeatures in project android by JetBrains.
the class LayoutRenderingIssueValidationStrategyTest method mockAndroidModel.
@NotNull
private static AndroidModuleModel mockAndroidModel(@NotNull GradleVersion version, boolean hasLayoutRenderingIssue) {
AndroidModelFeatures features = mock(AndroidModelFeatures.class);
when(features.isLayoutRenderingIssuePresent()).thenReturn(hasLayoutRenderingIssue);
AndroidModuleModel androidModel = mock(AndroidModuleModel.class);
when(androidModel.getFeatures()).thenReturn(features);
when(androidModel.getModelVersion()).thenReturn(version);
return androidModel;
}
Aggregations