forked from spockframework/spock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Javadoc to spec processor and spec orderers
Relates to spockframework#1443.
- Loading branch information
Showing
7 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
spock-core/src/main/java/org/spockframework/runtime/SpecProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
package org.spockframework.runtime; | ||
|
||
import org.spockframework.runtime.extension.builtin.orderer.SpecOrderer; | ||
import org.spockframework.runtime.model.SpecInfo; | ||
|
||
import java.util.Collection; | ||
|
||
/** | ||
* Generic bulk processor for a collection of {@link SpecInfo} elements | ||
* | ||
* @see SpecOrderer | ||
*/ | ||
public interface SpecProcessor { | ||
/** | ||
* Bulk-process a collection of {@link SpecInfo} elements in-place, i.e. do not return anything but operate on the | ||
* elements given, changing their state if necessary. | ||
* | ||
* @param specs spec-info instances to be processed | ||
*/ | ||
void process(Collection<SpecInfo> specs); | ||
} |
24 changes: 24 additions & 0 deletions
24
...in/java/org/spockframework/runtime/extension/builtin/orderer/AlphabeticalSpecOrderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters