Groovy Documentation

com.jcandksolutions.gradle.androidunittest
[Groovy] Class ModelManager

java.lang.Object
  com.jcandksolutions.gradle.androidunittest.ModelManager

class ModelManager

Class that handles the Modeling of the tests so the IDE can import it correctly.


Constructor Summary
ModelManager(BasePlugin androidPlugin)

Instantiates a ModelManager.

 
Method Summary
void register()

Registers with the Android plugin that there is a test ArtifactType of pure Java type.

void registerArtifact(VariantWrapper variantWrapper)

Registers under the ArtifactType registered in register() the artifact generated for the variant.

void registerJavadocSourcesArtifact(Configuration configuration)

Registers the Javadoc and Sources configuration to the model.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

ModelManager

ModelManager(BasePlugin androidPlugin)
Instantiates a ModelManager.
Parameters:
androidPlugin - The AndroidPlugin.


 
Method Detail

register

void register()
Registers with the Android plugin that there is a test ArtifactType of pure Java type.


registerArtifact

void registerArtifact(VariantWrapper variantWrapper)
Registers under the ArtifactType registered in register() the artifact generated for the variant. Including the base Android variant it was generated from, the test compilation task name, the test configuration, the test compile destination dir and a testSourceProvider.
Parameters:
variantWrapper - The wrapper for the variant we generated tests for.


registerJavadocSourcesArtifact

void registerJavadocSourcesArtifact(Configuration configuration)
Registers the Javadoc and Sources configuration to the model.
Parameters:
configuration - The Javadoc and Sources Configuration.


 

Groovy Documentation