Skip to content

Commit fa8bd57

Browse files
committed
Remove Sputnik
1 parent c4c6920 commit fa8bd57

File tree

2 files changed

+0
-153
lines changed

2 files changed

+0
-153
lines changed

spock-core/src/main/java/org/spockframework/runtime/Sputnik.java

Lines changed: 0 additions & 108 deletions
This file was deleted.

spock-specs/src/test/groovy/org/spockframework/runtime/SputnikSpec.groovy

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -13,53 +13,8 @@
1313
*/
1414
package org.spockframework.runtime
1515

16-
import org.junit.runner.manipulation.Filter
17-
import org.junit.runner.Description
18-
import org.junit.runner.manipulation.Sorter
19-
2016
import spock.lang.Specification
2117

22-
class SputnikSpec extends Specification {
23-
def "description reflects subsequent filtering"() {
24-
def sputnik = new Sputnik(SputnikSampleSpec)
25-
26-
expect:
27-
sputnik.description.children.methodName == ["feature1", "feature2", "feature3"]
28-
29-
when:
30-
sputnik.filter(new Filter() {
31-
@Override
32-
boolean shouldRun(Description description) {
33-
description.methodName == "feature2"
34-
}
35-
@Override
36-
String describe() {
37-
"filter"
38-
}
39-
})
40-
41-
then:
42-
sputnik.description.children.methodName == ["feature2"]
43-
}
44-
45-
def "description reflects subsequent sorting"() {
46-
def sputnik = new Sputnik(SputnikSampleSpec)
47-
48-
expect:
49-
sputnik.description.children.methodName == ["feature1", "feature2", "feature3"]
50-
51-
when:
52-
sputnik.sort(new Sorter(new Comparator<Description>() {
53-
int compare(Description desc1, Description desc2) {
54-
desc2.methodName <=> desc1.methodName
55-
}
56-
}))
57-
58-
then:
59-
sputnik.description.children.methodName == ["feature3", "feature2", "feature1"]
60-
}
61-
}
62-
6318
class SputnikSampleSpec extends Specification {
6419
def feature1() {
6520
expect: true

0 commit comments

Comments
 (0)