Home
last modified time | relevance | path

Searched refs:getConstraint (Results 1 – 25 of 701) sorted by relevance

12345678910>>...29

/dports/www/grails/grails-1.3.6/src/test/org/codehaus/groovy/grails/validation/
H A DUrlConstraintTests.java20 getConstraint("testURL", Boolean.TRUE), in testValidation()
27 getConstraint("testURL", Boolean.TRUE), in testValidation()
32 getConstraint("testURL", Boolean.TRUE), in testValidation()
37 getConstraint("testURL", Boolean.TRUE), in testValidation()
42 getConstraint("testURL", Boolean.TRUE), in testValidation()
47 getConstraint("testURL", "localhost"), in testValidation()
72 getConstraint("testURL", regexps), in testValidation()
77 getConstraint("testURL", regexps), in testValidation()
83 getConstraint("testURL", regexps), in testValidation()
89 getConstraint("testURL", regexps), in testValidation()
[all …]
H A DValidatorConstraintTests.java24 protected Constraint getConstraint( String closure ) { in getConstraint() method in ValidatorConstraintTests
25 return super.getConstraint( "testString", getClosure(closure) ); in getConstraint()
30 getConstraint("{val,obj -> return false}"), in testBooleanReturn()
37 getConstraint( "{val,obj -> return true}" ), in testBooleanReturn()
42 getConstraint("{val,obj -> return false}"), in testBooleanReturn()
49 getConstraint( "{val,obj -> return val == null}" ), in testBooleanReturn()
54 getConstraint( "{val,obj -> return val == null}" ), in testBooleanReturn()
59 getConstraint( "{val,obj -> return val?.trim() == ''}" ), in testBooleanReturn()
72 getConstraint("{val,obj -> return 'test.message'}"), in testStringReturn()
80 getConstraint("{val,obj -> return 123L}"), in testStringReturn()
[all …]
H A DCreditCardConstraintTests.java22 getConstraint( "testString", Boolean.TRUE ), in testValidate()
30 getConstraint( "testString", Boolean.TRUE ), in testValidate()
35 getConstraint( "testString", Boolean.TRUE ), in testValidate()
40 getConstraint( "testString", Boolean.TRUE ), in testValidate()
45 getConstraint( "testString", Boolean.TRUE ), in testValidate()
50 getConstraint( "testString", Boolean.TRUE ), in testValidate()
57 getConstraint( "testString", Boolean.TRUE ), in testValidate()
63 getConstraint( "testString", Boolean.TRUE ), in testValidate()
68 getConstraint( "testString", Boolean.TRUE ), in testValidate()
97 getConstraint( "testString", Boolean.TRUE), in testValidate()
[all …]
H A DMaxConstraintTests.java19 getConstraint( "testFloat", new Float(1.5d)), in testValidation()
26 getConstraint( "testFloat", new Float( 1.5d )), in testValidation()
31 getConstraint( "testLong", new Long( 150 )), in testValidation()
36 getConstraint( "testBigDecimal", new BigDecimal( "123.45" )), in testValidation()
42 getConstraint( "testInteger", new Integer( 100 )), in testValidation()
48 getConstraint( "testFloat", new Float( 1.5 )), in testValidation()
53 getConstraint( "testFloat", new Float( 1.5 ) ), in testValidation()
71 constraint = (MaxConstraint) getConstraint( "testLong", new Long(100) ); in testCreation()
75 getConstraint( "testFloat", new Object() ); in testCreation()
83 getConstraint( "testFloat", new Double(4d) ); in testCreation()
[all …]
H A DMinConstraintTests.java19 getConstraint( "testFloat", new Float(1.5d)), in testValidation()
26 getConstraint( "testFloat", new Float( 1.5d )), in testValidation()
31 getConstraint( "testLong", new Long( 15000 )), in testValidation()
37 getConstraint( "testInteger", new Integer( 100 )), in testValidation()
43 getConstraint( "testFloat", new Float( 1.5d )), in testValidation()
48 getConstraint( "testFloat", new Float( 1.7 ) ), in testValidation()
66 constraint = (MinConstraint) getConstraint( "testLong", new Long(100) ); in testCreation()
70 getConstraint( "testFloat", new Object() ); in testCreation()
78 getConstraint( "testFloat", new Double(4d) ); in testCreation()
86 getConstraint( "testBigDecimal", new Integer(5) ); in testCreation()
H A DMaxSizeConstraintTests.java22 getConstraint( "testString", new Integer( 10 )), in testValidation()
29 getConstraint( "testArray", new Integer(2)), in testValidation()
39 getConstraint( "testCollection", new Integer(2)), in testValidation()
44 getConstraint( "testCollection", new Integer(3)), in testValidation()
49 getConstraint( "testString", new Integer(5)), in testValidation()
55 getConstraint( "testString", new Integer(5)), in testValidation()
60 getConstraint( "testString", new Integer(5) ), in testValidation()
68 … MaxSizeConstraint constraint = (MaxSizeConstraint) getConstraint( "testString", new Integer(10) ); in testCreation()
80 getConstraint( "testString", "wrong"); in testCreation()
H A DMinSizeConstraintTests.java23 getConstraint( "testString", new Integer( 10 )), in testValidation()
30 getConstraint( "testArray", new Integer(4)), in testValidation()
40 getConstraint( "testCollection", new Integer(4)), in testValidation()
45 getConstraint( "testCollection", new Integer(3)), in testValidation()
50 getConstraint( "testString", new Integer(5)), in testValidation()
56 getConstraint( "testString", new Integer(5)), in testValidation()
61 getConstraint( "testString", new Integer(5) ), in testValidation()
69 … MinSizeConstraint constraint = (MinSizeConstraint) getConstraint( "testString", new Integer(10) ); in testCreation()
81 getConstraint( "testString", "wrong"); in testCreation()
H A DNotEqualConstraintTests.java19 getConstraint( "testString", "12345" ), in testValidation()
26 getConstraint( "testString", "12345" ), in testValidation()
31 getConstraint( "testLong", new Long(123) ), in testValidation()
36 getConstraint( "testDate", new Date(123) ), in testValidation()
41 getConstraint( "testString", "123" ), in testValidation()
48 NotEqualConstraint constraint = (NotEqualConstraint) getConstraint( "testString", "12345" ); in testCreation()
61 getConstraint( "testFloat", new BigDecimal("0.0") ); in testCreationWithWrongParameterType()
69 getConstraint( "testString", new Integer(4) ); in testCreationWithWrongParameterType()
H A DBlankConstraintTests.java16 getConstraint( "testString", Boolean.FALSE ), in testValidate()
23 getConstraint( "testString", Boolean.FALSE ), in testValidate()
28 getConstraint( "testString", Boolean.TRUE ), in testValidate()
33 getConstraint( "testString", Boolean.FALSE ), in testValidate()
38 getConstraint( "testString", Boolean.FALSE ), in testValidate()
43 getConstraint( "testString", Boolean.FALSE ), in testValidate()
55 constraint = (BlankConstraint) getConstraint( "testString", Boolean.TRUE ); in testConstraintCreation()
59 getConstraint( "testString", "wrong"); in testConstraintCreation()
H A DSizeConstraintTests.java24 getConstraint("testString", new IntRange(2, 5)), in testValidation()
30 getConstraint("testString", new IntRange(2, 5)), in testValidation()
36 getConstraint("testArray", new IntRange(2, 5)), in testValidation()
42 getConstraint("testArray", new IntRange(2, 5)), in testValidation()
47 getConstraint("testArray", new IntRange(2, 5)), in testValidation()
52 getConstraint("testArray", new IntRange(2, 5)), in testValidation()
56 getConstraint("testString", new IntRange(1, 5)), in testValidation()
62 … SizeConstraint constraint = (SizeConstraint) getConstraint("testInteger", new IntRange(1,5)); in testCreation()
74 getConstraint("testInteger", "wrong"); in testCreation()
H A DRangeConstraintTests.java19 getConstraint( "testInteger", new IntRange( 1, 5 )), in testValidation()
26 getConstraint( "testInteger", new IntRange( 1, 5 )), in testValidation()
33 getConstraint( "testString", new ObjectRange("abca","abcf")), in testValidation()
38 getConstraint( "testInteger", new IntRange( 1, 7 )), in testValidation()
44 getConstraint( "testInteger", new IntRange( 1, 7 )), in testValidation()
49 getConstraint( "testInteger", new IntRange( 1, 5 ) ), in testValidation()
57 … RangeConstraint constraint = (RangeConstraint) getConstraint( "testInteger", new IntRange(1,5) ); in testCreation()
67 getConstraint( "testInteger", "wrong"); in testCreation()
H A DNullableConstraint2Tests.java16 getConstraint("testString", Boolean.FALSE), in testValidation()
22 getConstraint("testString", Boolean.FALSE), in testValidation()
26 getConstraint("testString", Boolean.TRUE), in testValidation()
30 getConstraint("testString", Boolean.FALSE), in testValidation()
34 getConstraint("testString", Boolean.FALSE), in testValidation()
40 … NullableConstraint constraint = (NullableConstraint) getConstraint("testString", Boolean.FALSE); in testCreation()
50 getConstraint("testString", "wrong"); in testCreation()
H A DInListConstraintTests.java30 getConstraint( "testString", avail ), in testValidation()
37 getConstraint( "testString", avail ), in testValidation()
43 getConstraint( "testString", avail ), in testValidation()
49 getConstraint( "testString", avail ), in testValidation()
54 getConstraint( "testString", avail ), in testValidation()
69 constraint = (InListConstraint) getConstraint( "testString", getTestList() ); in testConstraintCreation()
73 getConstraint( "testString", "wrong"); in testConstraintCreation()
H A DMatchesConstraintTests.java16 getConstraint( "testString", "[a-zA-Z]"), in testValidation()
23 getConstraint( "testString", "[a-zA-Z]+"), in testValidation()
29 getConstraint( "testString", "[a-zA-Z]+" ), in testValidation()
34 getConstraint( "testString", "[a-zA-Z]+" ), in testValidation()
48 constraint = (MatchesConstraint) getConstraint( "testString", "[a-z]"); in testCreation()
52 getConstraint( "testString", new Long(123)); in testCreation()
H A DEmailConstraintTests.java17 getConstraint( "testString", Boolean.TRUE ), in testValidation()
24 getConstraint( "testString", Boolean.TRUE), in testValidation()
30 getConstraint( "testString", Boolean.TRUE ), in testValidation()
40 getConstraint( "testString", Boolean.TRUE), in testNullValue()
48 getConstraint( "testString", Boolean.TRUE), in testBlankString()
62 getConstraint( "testString", "wrong"); in testCreation()
H A DScaleConstraintTests.java69 Constraint constraint = getConstraint( "testBigDecimal", new Integer( 2 )); in testNullPasses()
74 Constraint constraint = getConstraint( "testString", new Integer( 2 )); in testValidationOnInvalidField()
85 ScaleConstraint constraint = (ScaleConstraint) getConstraint( "testFloat", new Integer(2) ); in testCreation()
97 getConstraint( "testFloat", "wrong"); in testCreation()
104 getConstraint( "testFloat", new Integer(-1)); in testCreation()
112 Constraint constraint = getConstraint( "testFloat", new Integer( scale )); in testFloat()
117 Constraint constraint = getConstraint( "testDouble", new Integer( scale )); in testDouble()
121 Constraint constraint = getConstraint( "testBigDecimal", new Integer( scale )); in testBigDecimal()
/dports/www/mediawiki137/mediawiki-1.37.1/tests/phpunit/unit/includes/editpage/Constraint/
H A DEditConstraintRunnerTest.php36 private function getConstraint( $result ) { function in EditConstraintRunnerTest
48 $constraint = $this->getConstraint( IEditConstraint::CONSTRAINT_PASSED );
56 $constraint = $this->getConstraint( IEditConstraint::CONSTRAINT_FAILED );
68 $constraintPass = $this->getConstraint( IEditConstraint::CONSTRAINT_PASSED );
69 $constraintFail = $this->getConstraint( IEditConstraint::CONSTRAINT_FAILED );
H A DEditFilterMergedContentHookConstraintTest.php36 private function getConstraint( $hookResult ) { function in EditFilterMergedContentHookConstraintTest
62 $constraint = $this->getConstraint( true );
70 $constraint = $this->getConstraint( false );
78 $constraint = $this->getConstraint( false );
97 $constraint = $this->getConstraint( true );
/dports/www/mediawiki136/mediawiki-1.36.3/tests/phpunit/unit/includes/editpage/Constraint/
H A DEditConstraintRunnerTest.php36 private function getConstraint( $result ) { function in EditConstraintRunnerTest
48 $constraint = $this->getConstraint( IEditConstraint::CONSTRAINT_PASSED );
56 $constraint = $this->getConstraint( IEditConstraint::CONSTRAINT_FAILED );
68 $constraintPass = $this->getConstraint( IEditConstraint::CONSTRAINT_PASSED );
69 $constraintFail = $this->getConstraint( IEditConstraint::CONSTRAINT_FAILED );
H A DEditFilterMergedContentHookConstraintTest.php36 private function getConstraint( $hookResult ) { function in EditFilterMergedContentHookConstraintTest
62 $constraint = $this->getConstraint( true );
70 $constraint = $this->getConstraint( false );
78 $constraint = $this->getConstraint( false );
97 $constraint = $this->getConstraint( true );
/dports/www/bolt/bolt-2.2.24/vendor/composer/composer/src/Composer/Repository/
H A DBaseRepository.php81 … if (is_null($constraint) || (($link->getConstraint()->matches($constraint) === !$invert))) {
100 if ($link->getConstraint()->matches($version) === $invert) {
111 if ($this->findPackage($link->getTarget(), $link->getConstraint())) {
128 if (!$link->getConstraint()->matches($version)) {
133 …rootReq->getTarget(), $pkg->getNames()) && !$rootReq->getConstraint()->matches($link->getConstrain…
/dports/mail/phplist/phplist-3.6.6/public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Validator/Tests/Validator/
H A DRecursiveValidatorTest.php125 $this->assertInstanceOf(Length::class, $violations->get(0)->getConstraint());
126 $this->assertInstanceOf(NotBlank::class, $violations->get(1)->getConstraint());
144 $this->assertInstanceOf(NotNull::class, $violations->get(0)->getConstraint());
145 $this->assertInstanceOf(IsTrue::class, $violations->get(1)->getConstraint());
170 $this->assertInstanceOf(NotNull::class, $violations->get(0)->getConstraint());
186 $this->assertInstanceOf(NotBlank::class, $violations->get(0)->getConstraint());
187 $this->assertInstanceOf(Length::class, $violations->get(1)->getConstraint());
/dports/finance/prestashop/prestashop/vendor/symfony/symfony/src/Symfony/Component/Validator/Tests/Validator/
H A DRecursiveValidatorTest.php125 $this->assertInstanceOf(Length::class, $violations->get(0)->getConstraint());
126 $this->assertInstanceOf(NotBlank::class, $violations->get(1)->getConstraint());
144 $this->assertInstanceOf(NotNull::class, $violations->get(0)->getConstraint());
145 $this->assertInstanceOf(IsTrue::class, $violations->get(1)->getConstraint());
170 $this->assertInstanceOf(NotNull::class, $violations->get(0)->getConstraint());
186 $this->assertInstanceOf(NotBlank::class, $violations->get(0)->getConstraint());
187 $this->assertInstanceOf(Length::class, $violations->get(1)->getConstraint());
/dports/www/mediawiki136/mediawiki-1.36.3/vendor/wikimedia/composer-merge-plugin/src/
H A DExtraPackage.php341 $oldPrettyString = $origin->getConstraint()->getPrettyString();
342 $newPrettyString = $merge->getConstraint()->getPrettyString();
349 if (Intervals::isSubsetOf($origin->getConstraint(), $merge->getConstraint())) {
353 if (Intervals::isSubsetOf($merge->getConstraint(), $origin->getConstraint())) {
359 $origin->getConstraint(),
360 $merge->getConstraint()
599 $vp->parseConstraints($package->getConstraint()->getPrettyString()),
667 $links[$link->getTarget()] = $link->getConstraint()->getPrettyString();
/dports/www/mediawiki135/mediawiki-1.35.5/vendor/wikimedia/composer-merge-plugin/src/
H A DExtraPackage.php341 $oldPrettyString = $origin->getConstraint()->getPrettyString();
342 $newPrettyString = $merge->getConstraint()->getPrettyString();
349 if (Intervals::isSubsetOf($origin->getConstraint(), $merge->getConstraint())) {
353 if (Intervals::isSubsetOf($merge->getConstraint(), $origin->getConstraint())) {
359 $origin->getConstraint(),
360 $merge->getConstraint()
599 $vp->parseConstraints($package->getConstraint()->getPrettyString()),
667 $links[$link->getTarget()] = $link->getConstraint()->getPrettyString();

12345678910>>...29