Class CompilationRule
java.lang.Object
com.google.testing.compile.CompilationRule
- All Implemented Interfaces:
org.junit.rules.TestRule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) Returns theElementsinstance associated with the current execution of the rule.getTypes()Returns theTypesinstance associated with the current execution of the rule.
-
Constructor Details
-
CompilationRule
public CompilationRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-
getElements
Returns theElementsinstance associated with the current execution of the rule.- Throws:
IllegalStateException- if this method is invoked outside the execution of the rule.
-
getTypes
Returns theTypesinstance associated with the current execution of the rule.- Throws:
IllegalStateException- if this method is invoked outside the execution of the rule.
-