@@ -32,7 +32,6 @@ class InclusionIT extends Specification {
3232 static final KRAMER_SELECTOR = new CollectionItemElementSelector (new Contact (id : ' kramer' ))
3333
3434 def builder = ObjectDifferBuilder . startBuilding()
35- def configurable = builder. configure()
3635 def working = PhoneBookSetup . getWorking()
3736 def base = PhoneBookSetup . getBase()
3837
@@ -59,7 +58,7 @@ class InclusionIT extends Specification {
5958
6059 def " Property with specific name excluded via configuration" () {
6160 given :
62- configurable . inclusion(). exclude(). propertyName(" name" )
61+ builder . inclusion(). exclude(). propertyName(" name" )
6362
6463 when :
6564 def node = builder. build(). compare(working, base)
@@ -73,7 +72,7 @@ class InclusionIT extends Specification {
7372
7473 def " Category excluded via configuration" () {
7574 given :
76- configurable . inclusion(). exclude(). category(' private' )
75+ builder . inclusion(). exclude(). category(' private' )
7776
7877 when :
7978 def node = builder. build(). compare(working, base)
@@ -84,7 +83,7 @@ class InclusionIT extends Specification {
8483
8584 def " Type excluded via configuration" () {
8685 given :
87- configurable . inclusion(). exclude(). type(Contact )
86+ builder . inclusion(). exclude(). type(Contact )
8887
8988 when :
9089 def node = builder. build(). compare(working, base)
@@ -95,7 +94,7 @@ class InclusionIT extends Specification {
9594
9695 def " Node at specific NodePath excluded via configuration" () {
9796 given :
98- configurable . inclusion(). exclude(). node(NodePath
97+ builder . inclusion(). exclude(). node(NodePath
9998 .startBuilding()
10099 .propertyName(' contacts' )
101100 .element(GEORGE_SELECTOR )
@@ -110,7 +109,7 @@ class InclusionIT extends Specification {
110109
111110 def " Property excluded via @ObjectDiffProperty annotation" () {
112111 given :
113- configurable . inclusion(). exclude(). node(NodePath . with(' name' ))
112+ builder . inclusion(). exclude(). node(NodePath . with(' name' ))
114113
115114 when :
116115 def node = builder. build(). compare(working, base)
@@ -121,7 +120,7 @@ class InclusionIT extends Specification {
121120
122121 def " including an element via property name" () {
123122 given :
124- configurable . inclusion(). include(). propertyName(' name' )
123+ builder . inclusion(). include(). propertyName(' name' )
125124
126125 when :
127126 def node = builder. build(). compare(working, base)
@@ -133,7 +132,7 @@ class InclusionIT extends Specification {
133132
134133 def " including an element via property name includes all its children" () {
135134 given :
136- configurable . inclusion(). include(). propertyName(' contacts' )
135+ builder . inclusion(). include(). propertyName(' contacts' )
137136
138137 when :
139138 def node = builder. build(). compare(working, base)
@@ -145,7 +144,7 @@ class InclusionIT extends Specification {
145144
146145 def " including an element via path includes all its children" () {
147146 given :
148- configurable . inclusion(). include(). node(NodePath . with(' contacts' ))
147+ builder . inclusion(). include(). node(NodePath . with(' contacts' ))
149148
150149 when :
151150 def node = builder. build(). compare(working, base)
@@ -159,10 +158,10 @@ class InclusionIT extends Specification {
159158 def includedCategory = " representation"
160159
161160 given : " the name property of the phonebook is part of our included category"
162- configurable . categories(). ofNode(NodePath . with(" name" )). toBe(includedCategory)
161+ builder . categories(). ofNode(NodePath . with(" name" )). toBe(includedCategory)
163162
164163 and : " the category is included"
165- configurable . inclusion(). include(). category(includedCategory)
164+ builder . inclusion(). include(). category(includedCategory)
166165
167166 when :
168167 def node = builder. build(). compare(working, base)
@@ -173,7 +172,7 @@ class InclusionIT extends Specification {
173172
174173 def " including an element implicitly includes its children" () {
175174 given :
176- configurable . inclusion(). include(). node(NodePath . with(' contacts' ))
175+ builder . inclusion(). include(). node(NodePath . with(' contacts' ))
177176
178177 when :
179178 def node = builder. build(). compare(working, base)
@@ -185,8 +184,8 @@ class InclusionIT extends Specification {
185184
186185 def " include all but some specific elements" () {
187186 given :
188- configurable . inclusion(). include(). node(NodePath . startBuilding(). propertyName(' contacts' ). build())
189- configurable . inclusion(). exclude(). node(NodePath . startBuilding(). propertyName(' contacts' ). element(KRAMER_SELECTOR ). build())
187+ builder . inclusion(). include(). node(NodePath . startBuilding(). propertyName(' contacts' ). build())
188+ builder . inclusion(). exclude(). node(NodePath . startBuilding(). propertyName(' contacts' ). element(KRAMER_SELECTOR ). build())
190189
191190 when :
192191 def node = builder. build(). compare(working, base)
@@ -198,7 +197,7 @@ class InclusionIT extends Specification {
198197
199198 def " when an element is included by property name, all its children will be implicitly included" () {
200199 given :
201- configurable . inclusion(). include(). node(NodePath . startBuilding(). propertyName(' contacts' ). build())
200+ builder . inclusion(). include(). node(NodePath . startBuilding(). propertyName(' contacts' ). build())
202201
203202 when :
204203 def node = builder. build(). compare(working, base)
@@ -212,8 +211,8 @@ class InclusionIT extends Specification {
212211
213212 def " when an element is included by category, all its children will be implicitly included" () {
214213 given :
215- configurable . categories(). ofNode(NodePath . startBuilding(). propertyName(' contacts' ). build()). toBe(' identifier' )
216- configurable . inclusion(). include(). category(' identifier' )
214+ builder . categories(). ofNode(NodePath . startBuilding(). propertyName(' contacts' ). build()). toBe(' identifier' )
215+ builder . inclusion(). include(). category(' identifier' )
217216
218217 when :
219218 def node = builder. build(). compare(working, base)
@@ -225,8 +224,8 @@ class InclusionIT extends Specification {
225224
226225 def " included children of excluded nodes should also be excluded" () {
227226 given :
228- configurable . inclusion(). exclude(). node(NodePath . startBuilding(). propertyName(' contacts' ). build())
229- configurable . inclusion(). include(). node(NodePath . startBuilding(). propertyName(' contacts' ). element(GEORGE_SELECTOR ). build())
227+ builder . inclusion(). exclude(). node(NodePath . startBuilding(). propertyName(' contacts' ). build())
228+ builder . inclusion(). include(). node(NodePath . startBuilding(). propertyName(' contacts' ). element(GEORGE_SELECTOR ). build())
230229
231230 when :
232231 def node = builder. build(). compare(working, base)
@@ -243,11 +242,11 @@ class InclusionIT extends Specification {
243242 .build()
244243
245244 given :
246- configurable . categories(). ofNode(NodePath . with(" name" )). toBe(includedCategory)
247- configurable . categories(). ofNode(nodePathToKramer). toBe(includedCategory)
245+ builder . categories(). ofNode(NodePath . with(" name" )). toBe(includedCategory)
246+ builder . categories(). ofNode(nodePathToKramer). toBe(includedCategory)
248247
249248 and : " the category is included"
250- configurable . inclusion(). include(). category(includedCategory)
249+ builder . inclusion(). include(). category(includedCategory)
251250
252251 when :
253252 def node = builder. build(). compare(working, base)
0 commit comments