sbt.testing
Interface SubclassFingerprint

All Superinterfaces:
Fingerprint

public interface SubclassFingerprint
extends Fingerprint

Indicates that classes (and possibly modules) that extend a particular superclass, or mix in a particular supertrait, should be discovered as test classes.


Method Summary
 boolean isModule()
          Indicates whether modules (singleton objects) that extend the superclass or supertrait should be considered during discovery, or just classes.
 boolean requireNoArgConstructor()
          Indicates whether discovered classes must have a no-arg constructor.
 java.lang.String superclassName()
          The name of the superclass or supertrait that identifies classes (and possibly modules) as test classes to be discovered.
 

Method Detail

isModule

boolean isModule()
Indicates whether modules (singleton objects) that extend the superclass or supertrait should be considered during discovery, or just classes.

If modules are not allowed by the test framework, they should return false for isModule. Returning false will speed up discovery because classes for modules can be quickly bypassed.


superclassName

java.lang.String superclassName()
The name of the superclass or supertrait that identifies classes (and possibly modules) as test classes to be discovered.


requireNoArgConstructor

boolean requireNoArgConstructor()
Indicates whether discovered classes must have a no-arg constructor.

If this method returns true, the client should not discover any subclass of the given superClassName that does not declare a no-arg constructor, i.e., a constructor that takes no arguments.