mirror of https://github.com/sbt/sbt.git
Support for tests written in Java and annotation-based test frameworks
This commit is contained in:
parent
6bc7982f7c
commit
4604682a1d
|
|
@ -9,6 +9,8 @@ public interface AnalysisCallback
|
||||||
{
|
{
|
||||||
/** The names of classes that the analyzer should find subclasses of.*/
|
/** The names of classes that the analyzer should find subclasses of.*/
|
||||||
public String[] superclassNames();
|
public String[] superclassNames();
|
||||||
|
/** The names of annotations that the analyzer should look for on methods and classes.*/
|
||||||
|
public String[] annotationNames();
|
||||||
/** Called when the the given superclass could not be found on the classpath by the compiler.*/
|
/** Called when the the given superclass could not be found on the classpath by the compiler.*/
|
||||||
public void superclassNotFound(String superclassName);
|
public void superclassNotFound(String superclassName);
|
||||||
/** Called before the source at the given location is processed. */
|
/** Called before the source at the given location is processed. */
|
||||||
|
|
@ -16,6 +18,8 @@ public interface AnalysisCallback
|
||||||
/** Called when the a subclass of one of the classes given in <code>superclassNames</code> is
|
/** Called when the a subclass of one of the classes given in <code>superclassNames</code> is
|
||||||
* discovered.*/
|
* discovered.*/
|
||||||
public void foundSubclass(File source, String subclassName, String superclassName, boolean isModule);
|
public void foundSubclass(File source, String subclassName, String superclassName, boolean isModule);
|
||||||
|
/** Called when an annotation with name <code>annotationName</code> is found on a class or one of its methods.*/
|
||||||
|
public void foundAnnotated(File source, String className, String annotationName, boolean isModule);
|
||||||
/** Called to indicate that the source file <code>source</code> depends on the source file
|
/** Called to indicate that the source file <code>source</code> depends on the source file
|
||||||
* <code>dependsOn</code>. Note that only source files included in the current compilation will
|
* <code>dependsOn</code>. Note that only source files included in the current compilation will
|
||||||
* passed to this method. Dependencies on classes generated by sources not in the current compilation will
|
* passed to this method. Dependencies on classes generated by sources not in the current compilation will
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue