11package grails.validation
22
3+ import spock.lang.Ignore
34import spock.lang.Issue
45import spock.lang.Specification
56import grails.validation.Validateable
@@ -52,6 +53,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
5253 constrainedProperties. containsKey(' book' )
5354 }
5455
56+ @Ignore
5557 void ' ensure only public non-static properties with getter and setter are constrained properties' () {
5658 MethodPropertiesCommand command = new MethodPropertiesCommand ()
5759 when : ' empty command with method properties is validated'
@@ -63,6 +65,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
6365 command. errors. getErrorCount() == 1
6466 }
6567
68+ @Ignore
6669 void ' ensure constrained method properties are only public ones with both getter and setter' () {
6770 when : ' constrained properties map is get'
6871 Map constrainedProperties = MethodPropertiesCommand . getConstraintsMap()
@@ -74,6 +77,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
7477
7578 // COMMAND OBJECT WITH SUPER CLASS
7679
80+ @Ignore
7781 void ' ensure all inherited public properties are by default constraint properties' () {
7882 InheritedPropertiesCommand command = new InheritedPropertiesCommand ()
7983
@@ -89,6 +93,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
8993 command. errors. getErrorCount() == 4
9094 }
9195
96+ @Ignore
9297 void ' ensure inherited constrained properties are only public ones' () {
9398 when : ' constrained properties map is get on child class'
9499 Map constrainedProperties = InheritedPropertiesCommand . getConstraintsMap()
@@ -101,6 +106,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
101106 constrainedProperties. containsKey(' book' )
102107 }
103108
109+ @Ignore
104110 void ' ensure only public non-static inherited properties with getter and setter are constrained properties' () {
105111 InheritedMethodPropertiesCommand command = new InheritedMethodPropertiesCommand ()
106112 when : ' empty command with method properties is validated'
@@ -112,6 +118,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
112118 command. errors. getErrorCount() == 1
113119 }
114120
121+ @Ignore
115122 void ' ensure constrained inherited method properties are only public ones with both getter and setter' () {
116123 when : ' constrained properties map is get from child class'
117124 Map constrainedProperties = InheritedMethodPropertiesCommand . getConstraintsMap()
@@ -150,6 +157,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
150157 constrainedProperties. containsKey(' book' )
151158 }
152159
160+ @Ignore
153161 void ' ensure only public non-static properties from trait with getter and setter are constrained properties' () {
154162 TraitMethodPropertiesCommand command = new TraitMethodPropertiesCommand ()
155163 when : ' empty command with simple properties is validated'
@@ -161,6 +169,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
161169 command. errors. getErrorCount() == 1
162170 }
163171
172+ @Ignore
164173 void ' ensure constrained method properties from trait are only public ones with both getter and setter' () {
165174 when : ' constrained properties map is get'
166175 Map constrainedProperties = TraitMethodPropertiesCommand . getConstraintsMap()
@@ -172,6 +181,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
172181
173182 // BOOL METHODS COMMAND OBJECT
174183
184+ @Ignore
175185 void ' ensure only public non-static bool properties with getter and setter are constrained properties' () {
176186 BoolMethodPropertiesCommand command = new BoolMethodPropertiesCommand ()
177187 when : ' empty command with method properties is validated'
@@ -183,6 +193,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
183193 command. errors. getErrorCount() == 1
184194 }
185195
196+ @Ignore
186197 void ' ensure constrained bool method properties are only public ones with both getter and setter' () {
187198 when : ' constrained properties map is get'
188199 Map constrainedProperties = BoolMethodPropertiesCommand . getConstraintsMap()
@@ -194,6 +205,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
194205
195206 // BOOL COMMAND OBJECT WITH SUPER CLASS
196207
208+ @Ignore
197209 void ' ensure only public non-static inherited bool properties with getter and setter are constrained properties' () {
198210 InheritedBoolMethodPropertiesCommand command = new InheritedBoolMethodPropertiesCommand ()
199211 when : ' empty command with method properties is validated'
@@ -205,6 +217,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
205217 command. errors. getErrorCount() == 1
206218 }
207219
220+ @Ignore
208221 void ' ensure constrained inherited bool method properties are only public ones with both getter and setter' () {
209222 when : ' constrained properties map is get from child class'
210223 Map constrainedProperties = InheritedBoolMethodPropertiesCommand . getConstraintsMap()
@@ -216,6 +229,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
216229
217230 // BOOL COMMAND OBJECT WITH TRAIT
218231
232+ @Ignore
219233 void ' ensure only public non-static bool properties from trait with getter and setter are constrained properties' () {
220234 TraitBoolMethodPropertiesCommand command = new TraitBoolMethodPropertiesCommand ()
221235 when : ' empty command with simple properties is validated'
@@ -227,6 +241,7 @@ class CommandObjectConstraintGettersSpec extends Specification {
227241 command. errors. getErrorCount() == 1
228242 }
229243
244+ @Ignore
230245 void ' ensure constrained bool method properties from trait are only public ones with both getter and setter' () {
231246 when : ' constrained properties map is get'
232247 Map constrainedProperties = TraitBoolMethodPropertiesCommand . getConstraintsMap()
0 commit comments