use of com.android.tools.idea.gradle.dsl.model.android.testOptions.UnitTestsModel in project android by JetBrains.
the class TestOptionsModel method unitTests.
@NotNull
public UnitTestsModel unitTests() {
UnitTestsDslElement unitTestsDslElement = myDslElement.getPropertyElement(UNIT_TESTS_BLOCK_NAME, UnitTestsDslElement.class);
if (unitTestsDslElement == null) {
unitTestsDslElement = new UnitTestsDslElement(myDslElement);
myDslElement.setNewElement(UNIT_TESTS_BLOCK_NAME, unitTestsDslElement);
}
return new UnitTestsModel(unitTestsDslElement);
}
Aggregations