File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/test/java/de/danielbechler/diff/inclusion Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 8080 <dependency >
8181 <groupId >org.codehaus.groovy</groupId >
8282 <artifactId >groovy-eclipse-compiler</artifactId >
83- <version >2.8.0 -01</version >
83+ <version >2.9.1 -01</version >
8484 </dependency >
8585 <dependency >
8686 <groupId >org.codehaus.groovy</groupId >
8787 <artifactId >groovy-eclipse-batch</artifactId >
88- <version >2.1.5-03 </version >
88+ <version >2.3.7-01 </version >
8989 </dependency >
9090 </dependencies >
9191 </plugin >
369369 <dependency >
370370 <groupId >org.codehaus.groovy</groupId >
371371 <artifactId >groovy-all</artifactId >
372- <version >2.2.1 </version >
372+ <version >2.3.10 </version >
373373 <scope >test</scope >
374374 </dependency >
375375 <dependency >
376376 <groupId >org.spockframework</groupId >
377377 <artifactId >spock-core</artifactId >
378- <version >0.7 -groovy-2.0 </version >
378+ <version >1.0 -groovy-2.3 </version >
379379 <scope >test</scope >
380380 </dependency >
381381 <dependency >
Original file line number Diff line number Diff line change 1515 */
1616
1717package de.danielbechler.diff.inclusion
18-
1918import de.danielbechler.diff.access.PropertyAwareAccessor
2019import de.danielbechler.diff.instantiation.TypeInfo
2120import de.danielbechler.diff.introspection.ObjectDiffProperty
@@ -25,7 +24,6 @@ import spock.lang.Subject
2524import spock.lang.Unroll
2625
2726import static de.danielbechler.diff.inclusion.Inclusion.*
28-
2927/**
3028 * Created by Daniel Bechler.
3129 */
@@ -50,10 +48,13 @@ class TypePropertyAnnotationInclusionResolverTest extends Specification {
5048
5149 @Unroll
5250 def ' should return #expected when annotated inclusion is #inclusion' () {
51+ def annotation = Mock (ObjectDiffProperty )
52+ annotation. inclusion() >> inclusion
53+
5354 when :
5455 def result = inclusionResolver. getInclusion(node)
5556 then :
56- node. getPropertyAnnotation(ObjectDiffProperty ) >> Stub ( ObjectDiffProperty , { inclusion() >> inclusion })
57+ node. getPropertyAnnotation(ObjectDiffProperty ) >> annotation
5758 and :
5859 result == expected
5960 where :
You can’t perform that action at this time.
0 commit comments