1
1
/*
2
- * Copyright 2012-2016 the original author or authors.
2
+ * Copyright 2012-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import kotlin .Metadata ;
20
20
import org .junit .Test ;
21
21
import org .spockframework .runtime .model .SpecMetadata ;
22
+ import spock .lang .Issue ;
23
+ import spock .lang .Stepwise ;
22
24
23
25
import static org .assertj .core .api .Assertions .assertThat ;
24
26
@@ -37,10 +39,18 @@ public void customizersForTestClassesWithDifferentKotlinMetadataAreEqual() {
37
39
}
38
40
39
41
@ Test
40
- public void customizersForTestClassesWithDifferentSpockMetadataAreEqual () {
41
- assertThat (new ImportsContextCustomizer (FirstSpockAnnotatedTestClass .class ))
42
+ public void customizersForTestClassesWithDifferentSpockFrameworkAnnotationsAreEqual () {
43
+ assertThat (
44
+ new ImportsContextCustomizer (FirstSpockFrameworkAnnotatedTestClass .class ))
45
+ .isEqualTo (new ImportsContextCustomizer (
46
+ SecondSpockFrameworkAnnotatedTestClass .class ));
47
+ }
48
+
49
+ @ Test
50
+ public void customizersForTestClassesWithDifferentSpockLangAnnotationsAreEqual () {
51
+ assertThat (new ImportsContextCustomizer (FirstSpockLangAnnotatedTestClass .class ))
42
52
.isEqualTo (new ImportsContextCustomizer (
43
- SecondSpockAnnotatedTestClass .class ));
53
+ SecondSpockLangAnnotatedTestClass .class ));
44
54
}
45
55
46
56
@ Metadata (d2 = "foo" )
@@ -54,12 +64,22 @@ static class SecondKotlinAnnotatedTestClass {
54
64
}
55
65
56
66
@ SpecMetadata (filename = "foo" , line = 10 )
57
- static class FirstSpockAnnotatedTestClass {
67
+ static class FirstSpockFrameworkAnnotatedTestClass {
58
68
59
69
}
60
70
61
71
@ SpecMetadata (filename = "bar" , line = 10 )
62
- static class SecondSpockAnnotatedTestClass {
72
+ static class SecondSpockFrameworkAnnotatedTestClass {
73
+
74
+ }
75
+
76
+ @ Stepwise
77
+ static class FirstSpockLangAnnotatedTestClass {
78
+
79
+ }
80
+
81
+ @ Issue ("1234" )
82
+ static class SecondSpockLangAnnotatedTestClass {
63
83
64
84
}
65
85
0 commit comments